blob: 416d7aaa1be3919cb397327918f6eeee09226e5c (
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pbmtoascii User Manual</TITLE></HEAD>
<BODY>
<H1>pbmtoascii</H1>
Updated: 02 April 2010
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
pbmtoascii - convert a PBM image to ASCII graphics
<H2 id="synopsis">SYNOPSIS</H2>
<B>pbmtoascii</B>
[<B>-1x2</B>|<B>-2x4</B>]
[<I>pbmfile</I>]
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p><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>.
<p><b>ppmtoterm</b> does a similar thing for color images to be displayed
on color text terminals.
<H2 id="options">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 small display, but it obscures pixel-level details. 2x4 mode is
also good for displaying PGM images:
<pre>
pamscale -width 158 | pnmnorm | pamditherbw -threshold | pbmtoascii -2x4
</pre>
should give good results.
<H2 id="seealso">SEE ALSO</H2>
<A HREF="asciitopgm.html">asciitopgm</A>
<a href="ppmtoascii.html">ppmtoascii</a>
<a href="ppmtoterm.html">ppmtoterm</a>
<A HREF="pbm.html">pbm</A>
<H2 id="author">AUTHOR</H2>
Copyright (C) 1988, 1992 by Jef Poskanzer.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>
|