pnmdepth - change the maxval in a portable anymap


   pnmdepth newmaxval [pnmfile]


   Reads  a  portable  anymap  as input.  Scales all the pixel values, and
   writes out the image with the new maxval.  Scaling the colors down to a
   smaller maxval will result in some loss of information.

   Be  careful  of  off-by-one  errors  when choosing the new maxval.  For
   instance, if you want the color values to be  five  bits  wide,  use  a
   maxval of 31, not 32.

   One  important  use  of pnmdepth is to convert a new format 2-byte-per-
   sample PNM file to the older 1-byte-per-sample  format.   Before  April
   2000,  essentially  all raw (binary) format PNM files had a maxval less
   than 256 and one byte per sample, and many programs may rely  on  that.
   If  you specify a newmaxval less than 256, the resulting file should be
   readable by any program that worked with PNM files before April 2000.


   pnm(5), ppmquant(1), ppmdither(1)


   Copyright (C) 1989, 1991 by Jef Poskanzer.

                             08 April 2000                     pnmdepth(1)

More Linux Commands

Tcl_FSEvalFile(3) - procedures to interact with any filesyst
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

menu_name(3menu) - get menu item name and description fields
The function item_name returns the name part of the given item. The function item_description returns the description part of the given item. RETURN VALUE These

gnutls_x509_trust_list_add_crls(3) - API function (ManPage)
This function will add the given certificate revocation lists to the trusted list. The list of CRLs must not be deinitialized during this structures lifetime. T

Tcl_UniCharIsPunct(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla

lodraw(1) - LibreOffice office suite - Linux manual page....
LibreOffice (LO for short) is a multi-platform office productivity suite. It was derived from 3.3 Beta on September 28, 2010. libreoffice is a sh

perl5123delta(1) - what is new for perl v5.12.3 (Man Page)
This document describes differences between the 5.12.2 release and the 5.12.3 release. If you are upgrading from an earlier release such as 5.12.1, first read p

curl_strequal(3) - case insensitive string comparisons......
The curl_strequal() function compares the two strings str1 and str2, ignoring the case of the characters. It returns a non-zero (TRUE) integer if the strings ar

glTexGenf(3gl) - control the generation of texture coordinat
glTexGen selects a texture-coordinate generation function or supplies coefficients for one of the functions. coord names one of the (s, t, r, q) texture coordin

gnutls_dtls_prestate_set(3) - API function - Linux man page
This function will associate the prestate acquired by the cookie authentication with the client, with the newly established session. SINCE 3.0.0 REPORTING BUGS

XCreateColormap(3) - create, copy, or destroy colormaps and
The XCreateColormap function creates a colormap of the specified visual type for the screen on which the specified window resides and returns the colormap ID as

hostnamectl(1) Control the system hostname - Linux man page
hostnamectl may be used to query and change the system hostname and related settings. This tool distinguishes three different hostnames: the high-level pretty h

gnc-fq-helper(1) allows gnucash to communicate with FinanceQ
Input: (on standard input - one entry per line and one line per entry, and double quotes must only be delimiters, not string content -- remember, we dont have a

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