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]
This program is part of Netpbm(1)
This program accepts Photo-CD image or overview file data from the specified input file, 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 specified output file (or to standard output if no file is specified).
On a standard Photo-CD, image files appear 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:
Format Resolution ------ ---------- 64Base 4096x6144 (ProPhotoCD only) 16Base 2048x3072 4Base 1024x1536 Base 512x768 Base/4 256x384 Base/16 128x192
The overview file employs Base/16 format.
Invoking hpcdtoppm without arguments produces a list of default values. Note that you can supply only one size option.
where long and short take one of two forms:
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.
for this difference or show it with xv (push the HistEq button in the color editor).
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:
These three factors are interdependent, hence no more then 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.
The program ignores read protection.
The -i option is not working correctly.
Available information obout 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.
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.
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).