HPCDTOPPM(1)
πΏ hpcdtoppm β Hpcdtoppm User Manual(0), but make it cute πΏ
β¨ NAME β¨
hpcdtoppm β convert a Photo-CD image into a PBM image.
π SYNOPSIS π
hpcdtoppm infile [-a] [{-C|-0|-Overview|-O} file opt] [-c0] [-c-] [-c+]
[-crop] [-d] [-dpi f] [-eps] [-epsd] [-epsg] [-fak scale] [-hori] [-i]
[-l] [-m] [-n] [-pb pos] [-pgm] [-ph height] [-pl pos] [-pos] [-ppm]
[-ps] [-psd] [-psg] [-pw width] [-r] [-rep] [-S long short] [-s] [-vert]
[-x] [-ycc] [-1|-Base/16|-128x192] [-2|-Base/4|-256x384]
[-3|-Base|-512x768] [-4|-4Base|-1024x1536] [-5|-16Base|-2048x3072]
[-6|-64Base|-4096x6144] [outfile]
π¦ DESCRIPTION π¦
Okay bestie, so hpcdtoppm is part of Netpbm(1). It takes Photo-CD image or overview file data from the input file you name as infile β or, if the resolution is lower than 64Base and the file argument is specified as -, from standard input β and writes either PBM Format or PostScript to the output file you specify, or to standard output if you donβt name one. Slay. π
On a standard Photo-CD, image files show up in the directory photo_cd/images, in files with names of the form imgnnnn.pcd, where nnnn is a 4-digit-number. The overview file appears in photo_cd/overview.pcd.
Photo-CD images are stored using as many as 6 different resolutions, and the format-to-resolution lineup is literally giving:
64Baseβ4096x6144(ProPhotoCD only)16Baseβ2048x30724Baseβ1024x1536Baseβ512x768Base/4β256x384Base/16β128x192
The overview file employs Base/16 format.
πΈ OPTIONS πΈ
Invoking hpcdtoppm without arguments produces a list of default values. Note that you can supply only one size option.
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), hpcdtoppm recognizes the following command line options:
-aβ Automatically determine image orientation. This option is experimental, and does not work for overview files.{-C | -0 | -Overview | -O } file optβ Extract all images from an overview file. The mandatory file argument is the name of a PPM file; output files are namedfilennnn, wherennnnis a 4-digit number. Overview images are extracted in their originalBase/16format. The value of opt determines the orientation of the contact sheet image; recognized values are:nβ Do not rotate the image.lβ Rotate the picture counter-clockwise (portrait mode).rβ Rotate the picture clockwise (portrait mode).
-c0β Do not correct (brighten or darken) the image.-c-β Darken the image.-c+β Brighten the image.-cropβ Cut off the black frame which sometimes appears at the image borders.-dβ Show only the decompressed difference rather than the complete image (applicable only to4Baseand16Baseimages).-dpi resβ Set the printer resolution to res for dithered Postscript images.-epsβ Write a RGB Encapsulated Postscript color image.-epsdβ Write a Floyd-Steinberg dithered image in Encapsulated Postscript.-epsgβ Write a grayscale image in Encapsulated Postscript.-fak scaleβ Set the scaling factor for dithered PostScript images to scale.-horiβ Flip the image horizontally.-iβ Send information from an image file header to Standard Error.-lβ Rotate the picture counter-clockwise (portrait mode).-mβ Write messages about the phases of decoding to standard error.-nβ Do not rotate the image.-pb posβ Set the bottom position of the Postscript image to pos.-pgmβ Write a pgm (grayscale) image.-ph heightβ Set the height of the Postscript image to height.-pl posβ Set the leftmost position of the Postscript image to pos.-posβ Print the relative starting position of the data for the current resolution.-ppmβ Write a ppm RGB (color) image.-psβ Write a RGB Postscript color image.-psdβ Write a Floyd-Steinberg dithered image in Postscript.-psgβ Write a Postscript grayscale image.-pw widthβ Set the width of the Postscript image to width.-rβ Rotate the picture clockwise (portrait mode).-repβ Try to jump over reading errors in the Huffman code.-S long shortβ Cut out a subrectangle with boundaries defined by the values:longβ For the longer side of the image.shortβ For the shorter side of the image.
where long and short take one of two forms:
a-bβ Cut from position a to position b.a+bβ Starting at offset a, cut a length of b.
and where a and b are either integers representing pixel locations, or floating point values over the range [0.0 ... 1.0], representing the fraction of the length of a side.
-sβ Apply a simple sharpness operator to the luminosity channel.-vertβ Flip the image vertically.-xβ Overskip Mode (applicable toBase/16,Base/4,Baseand4Base). In Photo-CD images the luminosity channel is stored in full resolution, the two chromaticity channels are stored in half resolution only and have to be interpolated. In Overskip Mode, the chromaticity channels of the next higher resolution are taken instead of interpolating. To see the difference, generate one PPM with and one PPM without this option. Usepamarith(1)to generate the difference image of these two images. Callppmhist(1)for this difference or show it withxv(push theHistEqbutton in the color editor).-yccβ Write the image in a variation on PPM format in which the samples are YCC instead of RGB.-1|-Base/16|-128x192β Extract theBase/16image.-2|-Base/4|-256x384β Extract theBase/4image.-3|-Base|-512x768β Extract theBaseimage.-4|-4Base|-1024x1536β Extract the4Baseimage.-5|-16Base|-2048x3072β Extract the16Baseimage.-6|-64Base|-4096x6144β Extract the64Baseimage. This resolution can be extracted from ProPhotoCD images only. The path of the64Baseextension files is derived from the path to the image file. This means that it doesnβt work onstdinand the directory structure must be the very same as on the ProPhotoCD.
π¨ POSTSCRIPT OUTPUT π¨
For Postscript output (options -ps, -eps, -psg, -epsg, -psd, -epsg) you can define both the resolution and placement of the image. Both size and position are specified in points (1/72 inch).
The position of the image (where the origin is assumed to be at the lower left corner of the page) is controlled by the -pl and -pb options (applicable at all resolutions).
The size of color and grayscale images is changed with the -pw and -ph options. Every image pixel is mapped onto one Postscript pixel.
There are three modes of control for dithered Postscript:
- Image size β (
-pwand-ph) - Printer resolution β (
-dpi) - Scaling factor β (
-fak)
These three factors are interdependent, hence no more than two can be specified simultaneously. Using -dpi and the -pw/-ph options together often yields pleasing results. Even using the default values for these options will produce results differing from those obtained without use of the options.
π LIMITATIONS π
The program ignores read protection.
The -i option is not working correctly.
Available information about the Photo-CD format is vague; this program was developed by trial-and-error after staring at hex-dumps. Please send bugs reports and patches to the author.
π₯ SEE ALSO π₯
pcdovtoppm(1), pamarith(1), ppm(1), ppmhist(1), pnmquant(1), ppmtopgm(1), ppmtorgb3(1), xv
π VERSION π
The name hpcdtoppm stands for βHadmutβs pcdtoppm,β to make it distinguishable in the event that someone else is building a similar application and naming it pcdtoppm.
This is version 0.6.
π AUTHOR π
Copyright (c) 1992, 1993, 1994 by Hadmut Danisch (danisch@ira.uka.de).
Hadmut Danish has given permission to Bryan Henderson (August 2003) to distribute this documentation as part of Netpbm on Sourceforge and therefore to license this copy of this documentation to the public with the following Sourceforge-compatible license. Note that this license does not contain a restriction on oneβs right to sell the material, as does the hpcdtoppm program itself and other copies of this documentation.
This software is not public domain. Permission to use and distribute this software and its documentation for noncommercial use and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
The hpcdtoppm software itself (as opposed to this supporting documentation) is licensed by Danisch under a similar license, but with an additional restriction that a recipient may not sell the software or use it in profit-making activity. See the source code of the program for details on its license.
Manual page extensively modified by R. P. C. Rodgers (rodgers@nlm.nih.gov).
π§ DOCUMENT SOURCE π§
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/hpcdtoppm.html
π Thatβs the whole manual, bestie β netpbm documentation, 07 August 2003, Hpcdtoppm User Manual(0). Go convert a Photo-CD and slay. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: netpbm 11.9.3-160000.2.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND IJG AND MIT AND SUSE-Public-Domain
- opensuse-leap 16.0: netpbm 11.9.3-160000.2.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND IJG AND MIT AND SUSE-Public-Domain
- opensuse-leap 16.0: netpbm 11.9.3-160000.2.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND IJG AND MIT AND SUSE-Public-Domain
- opensuse-leap 16.0: netpbm 11.9.3-160000.2.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND IJG AND MIT AND SUSE-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms