MOON
Server: Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.4.10
System: Linux vps.presagepowered.net 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: mckernan (512)
PHP: 5.4.10
Disabled: NONE
Upload Files
File: //usr/share/doc/netpbm-10.35.58/userguide/pbmtoascii.html
<!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>