asciitopgm - convert ASCII graphics into a portable graymap


   asciitopgm [-d divisor] height width [asciifile]


   Reads  ASCII  data  as  input.   Produces a portable graymap with pixel
   values which are an approximation of  the  "brightness"  of  the  ASCII
   characters,  assuming  black-on-white  printing.   In  other  words,  a
   capital M is very dark, a period is ver light, and a  space  is  white.
   Input  lines  which  are  fewer than width characters are automatically
   padded with spaces.

   The divisor argument is a floating-point number  by  which  the  output
   pixels  are  divided;  the  default  value is 1.0.  This can be used to
   adjust the brightness of the graymap: for example, if the image is  too
   dim, reduce the divisor.

   In  keeping  with  (I  believe) Fortran line-printer conventions, input
   lines beginning with a + (plus) character are assumed  to  "overstrike"
   the previous line, allowing a larger range of gray values.

   This  tool contradicts the message in the pbmtoascii manual: "Note that
   there is no asciitopbm tool - this transformation is one-way."


   The table of ASCII-to-grey values is subject to interpretation, and, of
   course, depends on the typeface intended for the input.


   pbmtoascii(1), pgm(5)


   Wilson H. Bent. Jr. (

                           26 December 1994                  asciitopgm(1)

More Linux Commands

Tcl_RegisterChannel(3) - buffered I/O facilities using chann
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

curl_free(3) - reclaim memory that has been obtained through
curl_free reclaims memory that has been obtained through a libcurl call. Use curl_free() instead of free() to avoid anomalies that can result from differences i

get_current_dir_name(3) - Get current working directory.....
These functions return a null-terminated string containing an absolute pathname that is the current working directory of the calling process. The pathname is re

DisplayPlanes(3) - Display macros and functions (Man Page)
The AllPlanes macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure. The BlackPixel macro returns the black pixel val

Tcl_ConvertToType(3) - manipulate Tcl object types (ManPage)
The procedures in this man page manage Tcl object types. They are used to register new object types, look up types, and force conversions from one type to anoth

getppid(2) - get process identification - Linux manual page
getpid() returns the process ID of the calling process. (This is often used by routines that generate unique temporary filenames.) getppid() returns the process

glVertex4fv(3gl) - specify a vertex - Linux manual page.....
glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are assoc

grub2-mkimage(1) make a bootable image of GRUB (Man Page)...
Make a bootable image of GRUB. -c, --config=FILE embed FILE as an early config -C, --compression=(xz|none|auto) choose the compression to use for core image -d,

sched_yield(2) - yield the processor - Linux manual page....
sched_yield() causes the calling thread to relinquish the CPU. The thread is moved to the end of the queue for its static priority and a new thread gets to run.

ttk_treeview(n) hierarchical multicolumn data display widget
The ttk::treeview widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list of data values. The

XML::Parser::Style::Tree(3pm) - (unknown subject) (ManPage)
This module implements XML::Parsers Tree style parser. When parsing a document, parse() will return a parse tree for the document. Each node in the tree takes t

plasmoidviewer(1) - Run Plasma widgets in their own window
plasmoidviewer is a graphical tool allowing developers to test Plasma applets. Only installed applets will be found. kbuildsycoca4 may need to be run for newly-

We can't live, work or learn in freedom unless the software we use is free.