.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. Pamdepth User Manual - Online Linux Manual PageSection : 0
Updated : 26 August 2020
Source : netpbm documentation

NAMEpamdepth - change the depth (color resolution) in a Netpbm image .UN synopsis

SYNOPSISpamdepth newmaxval [netpbmfile] .UN description

DESCRIPTIONThis program is part of Netpbm(1)​. pamdepth reads a Netpbm image as input, changes its depth (color resolution), and writes out the resulting Netpbm image. I.e. the output has a different maxval from the input, but all the same colors (apart from rounding error). Reducing the depth results in some loss of information. Here is an example of the effect at the image format level: Assume you start with an image with maxval 100 and sample values of 50 and 100. You tell pamdepth to change it to depth 150. The output has maxval 200 and sample values 75 and 150. This program works on multi-image streams. 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 pamdepth 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. .UN output_format

Output FormatThe output format (PBM, etc.) and, in the case of PAM, tuple type, of the output is usually the same as the input. However, changing the depth of a black and white image does not make sense, except to turn it into a grayscale image, so if the input is a black and white image, pamdepth makes the output grayscale. To be more precise, if the input is a PBM image, the output is PGM, and if the input is a PAM with tuple type BLACK_AND_WHITE or BLACK_AND_WHITE_ALPHA, the output is a PAM with tuple type GRAYSCALE or GRAYSCALE_ALPHA, respectively. This conversion happens even if the new maxval is 1. Before Netpbm 10.92 (September 2020), pamdepth failed if the input was PAM with a black and white tuple type and the new maxval was anything but 1. But it always promoted PBM to PGM. .UN options

OPTIONSThere are no command line options defined specifically for pamdepth, but it recognizes the options common to all programs based on libnetpbm (See
 Common Options
​.) .UN seealso

SEE ALSO"pnm(1)​, "pam(1)​, "pnmquant(1)​, "ppmdither(1)"pambrighten(1)"pamfunc(1).UN history

HISTORYpamdepth was new in Netpbm 10.32 (February 2006). It replaced pnmdepth, by Jef Poskanzer. pamdepth is backward compatible with pnmdepth and adds the ability to process arbitrary PAM images and the ability to process multi-image input streams. pnmdepth handled only PNM images and ignored all but the first in any stream.

DOCUMENT SOURCEThis manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at http://netpbm.sourceforge.net/doc/pamdepth.html
0
Johanes Gumabo
Data Size   :   10,030 byte
man-pamdepth.1Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   6 / 258,645
Visitor ID   :     :  
Visitor IP   :   3.137.186.186   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|pamdepth.1|1/2|\" This man page was generated by the Netpbm tool 'makeman' from HTML source. |.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. )         (parse_manual_page_|252|pamdepth.1|1/2|\"|.\" This man page was generated by the Netpbm tool 'makeman' from HTML source. )         (parse_manual_page_|252|pamdepth.1|12|UN|.UN synopsis )         (parse_manual_page_|252|pamdepth.1|17|UN|.UN description )         (parse_manual_page_|252|pamdepth.1|50|UN|.UN output_format )         (parse_manual_page_|252|pamdepth.1|70|UN|.UN options )         (parse_manual_page_|252|pamdepth.1|81|UN|.UN seealso )         (parse_manual_page_|252|pamdepth.1|96|UN|.UN history )