about summary refs log tree commit diff
path: root/pbmtoascii.html
blob: 2375c53efe4079f5c75507ac154dd7e481864cad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pbmtoascii User Manual</TITLE></HEAD>
<BODY>
<H1>pbmtoascii</H1>
Updated: 11 August 2002
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pbmtoascii - convert a PBM image to ASCII graphics

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pbmtoascii</B>

[<B>-1x2</B>|<B>-2x4</B>]

[<I>pbmfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<b>pbmtoascii</b> reads a PBM image as input and produces a somewhat
crude ASCII graphic image as output.

<P>To convert back, use <A HREF="asciitopgm.html">asciitopgm</A>.

<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<p>The <B>-1x2</B> and <B>-2x4</B> options give you two alternate ways for
the pixels to get mapped to characters.  With <B>1x2</B>, the default,
each character represents a group of 1 pixel across by 2 pixels down.
With <B>-2x4</B>, each character represents 2 pixels across by 4
pixels down.  With the 1x2 mode you can see the individual pixels, so
it's useful for previewing small images on a non-graphics terminal.
The 2x4 mode lets you display larger images on a standard 80-column
display, but it obscures pixel-level details.  2x4 mode is also good
for displaying PGM images:

<pre>
pamscale -width 158 | pnmnorm | pamditherbw -threshold
</pre>

should give good results.

<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="asciitopgm.html">asciitopgm</A>
<A HREF="pbm.html">pbm</A>

<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>

Copyright (C) 1988, 1992 by Jef Poskanzer.

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#lbAF">SEE ALSO</A>
<LI><A HREF="#lbAG">AUTHOR</A>
</UL>
</BODY>
</HTML>