home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
Programme_zum_Heft
/
Anwendungen
/
Kurztests
/
PBM
/
HPCDTOPPM_0_6.LHA
/
hpcdtoppm.0.6
/
doc
/
hpcdtoppm.man
< prev
next >
Wrap
Text File
|
1994-10-14
|
14KB
|
397 lines
hpcdtoppm(1L) hpcdtoppm(1L)
NNAAMMEE
hpcdtoppm - convert a Photo-CD file into a portable bitmap
file
SSYYNNOOPPSSIISS
hhppccddttooppppmm _i_n_f_i_l_e [--aa] [{--CC|--00|--OOvveerrvviieeww|--OO}] _f_i_l_e _o_p_t]
[--cc00] [--cc--] [--cc++] [--ccrroopp] [--dd] [--ddppii _f] [--eeppss] [--eeppssdd]
[--eeppssgg] [--ffaakk _s_c_a_l_e] [--hhoorrii] [--ii] [--qquuaalliittyy N]] [--ll] [--mm]
[--mmaaxxmmeemmoorryy N]] [--nn] [--ooppttiimmiizzee]] [--ppbb _p_o_s] [--ppggmm] [--pphh
_h_e_i_g_h_t] [--ppll _p_o_s] [--ppooss] [--ppppmm] [--ppss] [--ppssdd] [--ppssgg] [--ppww
_w_i_d_t_h] [--qquuaalliittyyN] [--rr] [--rreepp] [--SS _l_o_n_g _s_h_o_r_t] [--ss]
[--vveerrtt] [--xx] [--yycccc] [--11|--BBaassee//1166 |_-_1_2_8_x_1_9_2] [--22|--BBaassee//44
|_-_2_5_6_x_3_8_4] [--33|--BBaassee |_-_5_1_2_x_7_6_8] [--44|--44BBaassee |_-_1_0_2_4_x_1_5_3_6]
[--55|--1166BBaassee |_-_2_0_4_8_x_3_0_7_2] [--66|--6644BBaassee |_-_4_0_9_6_x_6_1_4_4] [_o_u_t_
_f_i_l_e]
DDEESSCCRRIIPPTTIIOONN
This program accepts Photo-CD image or overview file data
from the specified input file, _i_n_f_i_l_e (or, if the resolu
tion is lower than 64Base and the file argument is speci
fied as --, from standard input), and writes either
Portable Bitmap Format or POSTSCRIPT to the specified out
put file (or to standard output if no file is specified).
On a standard Photo-CD, image files appear in
_p_h_o_t_o___c_d_/_i_m_a_g_e_s, where they appear in files with names of
the form img_n_n_n_n_._p_c_d, where _n_n_n_n is a 4-digit-number. The
overview file appears in _p_h_o_t_o___c_d_/_o_v_e_r_v_i_e_w_._p_c_d.
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.
OOPPTTIIOONNSS
Invoking _h_p_c_d_t_o_p_p_m without arguments produces a list of
default values. Note that you can supply only one size
option.
--aa Automatically determine image orientation (this
option is experimental, and does not work for
overview files).
{--CC | --00 | --OOvveerrvviieeww | --OO } _f_i_l_e _o_p_t
Extract all images from an overview file. The
mandatory _f_i_l_e argument is the name of a _p_p_m file;
3 March 1994 1
hpcdtoppm(1L) hpcdtoppm(1L)
output files are named _f_i_l_e_n_n_n_n, where _n_n_n_n is a
4-digit number. Overview images are extracted in
their original Base/16 format. The value of _o_p_t
determines the orientation of the contact sheet
image; recognized values are:
nn Do not rotate the image.
ll Rotate the picture counter-clockwise (por
trait mode).
rr Rotate the picture clockwise (portrait
mode).
--cc00 Do not correct (brighten or darken) the image.
--cc-- Darken the image.
--cc++ Brighten the image.
--ccrroopp Cut off the black frame which sometimes appears at
the image borders.
--dd Show only the decompressed difference rather than
the complete image (applicable only to 4Base and
16Base images).
--ddppii rreess
Set the printer resolution to _r_e_s for dithered
POSTSCRIPT images.
--eeppss Write a RGB Encapsulated POSTSCRIPT color image.
--eeppssdd Write a Floyd-Steinberg dithered image in Encapsu
lated POSTSCRIPT.
--jjppeegg Write image in JPEG format.
--qquuaalliittyy NN
Scale quantization tables to adjust image quality.
(JPEG output only) Quality is 0 (worst) to 100
(best); default is 75.
--eeppssgg Write a grayscale image in Encapsulated POSTSCRIPT.
--ffaakk ssccaallee
Set the scaling factor for dithered POSTSCRIPT
images to _s_c_a_l_e.
--hhoorrii Flip the image horizontally.
--ii Send information from an image file header to stan
dard error.
3 March 1994 2
hpcdtoppm(1L) hpcdtoppm(1L)
--ll Rotate the picture counter-clockwise (portrait
mode).
--mm Write messages about the phases of decoding to
standard error.
--mmaaxxmmeemmoorryy NN
Set limit for amount of memory used by the JPEG
encoder. Value is in thousands of bytes. If more
space is needed, temporary files will be used.
Default is 50000 bytes.
--nn Do not rotate the image.
--ooppttiimmiizzee
Perform optimization of entropy encoding parame
ters. (JPEG output only) Without this, default
encoding parameters are used. --ooppttiimmiizzee usually
makes the JPEG file a little smaller, but encoding
is somewhat slower and needs much more memory.
Image quality and speed of decompression are unaf
fected by --ooppttiimmiizzee.
--ppbb ppooss
Set the bottom position of the POSTSCRIPT image to
_p_o_s.
--ppggmm Write a _p_g_m (grayscale) image.
--pphh hheeiigghhtt
Set the height of the POSTSCRIPT image to _h_e_i_g_h_t.
--ppll ppooss
Set the leftmost position of the POSTSCRIPT image
to _p_o_s.
--ppooss Print the relative starting position of the data
for the current resolution.
--ppppmm Write a _p_p_m RGB (color) image.
--ppss Write a RGB POSTSCRIPT color image.
--ppssdd Write a Floyd-Steinberg dithered image in
POSTSCRIPT.
--ppssgg Write a POSTSCRIPT grayscale image.
--ppww wwiiddtthh
Set the width of the POSTSCRIPT image to _w_i_d_t_h.
--rr Rotate the picture clockwise (portrait mode).
--rreepp Try to jump over reading errors in the Huffman
3 March 1994 3
hpcdtoppm(1L) hpcdtoppm(1L)
code.
--SS lloonngg sshhoorrtt
Cut out a subrectangle with boundaries defined by
the values:
_l_o_n_g For the longer side of the image.
_s_h_o_r_t For the shorter side of the image.
where _l_o_n_g and _s_h_o_r_t take one of two forms:
aa--bb Cut from position _a to position _b.
aa++bb 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.
--ss Apply a simple sharpness operator to the luminosity
channel.
--vveerrtt Flip the image vertically.
--xx Overskip Mode (applicable to Base/16, Base/4, Base
and 4Base). In Photo-CD images the luminosity
channel is stored in full resolution, the two chro
maticity 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 _p_p_m with and one
_p_p_m without this flag. Use _p_n_m_a_r_i_t_h(1L) to gener
ate the difference image of these two images. Call
_p_p_m_h_i_s_t(1L) for this difference or show it with
_x_v(1L) (push the HHiissttEEqq button in the color edi
tor).
--yycccc Write the image in _p_p_m YCC format.
--11|--BBaassee//1166|--112288xx119922
Extract the Base/16 image.
--22 || --BBaassee//44 || --225566xx338844
Extract the Base/4 image.
--33 || --BBaassee || --551122xx776688
Extract the Base image.
--44 || --44BBaassee || --11002244xx11553366
Extract the 4Base image.
3 March 1994 4
hpcdtoppm(1L) hpcdtoppm(1L)
--55 || --1166BBaassee || --22004488xx33007722
Extract the 16Base image.
--66 || --6644BBaassee || --44009966xx66114444
Extract the 64Base image. This resolution can be
extracted from ProPhotoCD images only. The path of
the 64Base extension files is derived from the path
to the image file. This means that it doesn't work
on stdin an the directory structure must be the
very same as on the ProPhotoCD.
PPOOSSTTSSCCRRIIPPTT OOUUTTPPUUTT
For POSTSCRIPT output (options --ppss, --eeppss, --ppssgg, --eeppssgg,
--ppssdd, --eeppssgg) you can define both the resolution and place
ment 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 --ppll and --ppbb options (applicable at all resolutions).
The size of color and grayscale images is changed with the
--ppww and --pphh options. Every image pixel is mapped onto one
POSTSCRIPT pixel.
There are three modes of control for dithered POSTSCRIPT:
Image size
(--ppww and --pphh)
Printer resolution
(--ddppii)
Scaling factor
(--ffaakk)
These three factors are interdependent, hence no more then
two can be specified simultaneously. Using --ddppii and the
--ppww/--pphh options together often yields pleasing results.
Even using the default values for these options will pro
duce results differing from those obtained without use of
the options.
BBUUGGSS
The program ignores read protection.
The --ii option is not working correctly.
Available information obout the Photo-CD format is vague;
this program was developed by trial-and-error after star
ing at hex-dumps. Please send bugs reports and patches to
the author.
3 March 1994 5
hpcdtoppm(1L) hpcdtoppm(1L)
SSEEEE AALLSSOO
pnmarith(1L), ppm(5L), ppmhist(1L), ppmquant(1L), ppm
topgm(1L), ppmtorgb3(1L), cjpeg(1L), xv(1L)
VVEERRSSIIOONN
The name _h_p_c_d_t_o_p_p_m stands for "Hadmut's pcdtoppm," to make
it distinguishable in the event that someone else is
building a similar application and naming it _p_c_d_t_o_p_p_m.
This is version 0.6.
AAUUTTHHOORR
Copyright (c) 1992, 1993, 1994 by Hadmut Danisch
(danisch@ira.uka.de). 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 documenta
tion. This software may not be sold or used for profit-
making activities.
Manual page extensively modified by R. P. C. Rodgers
(rodgers@nlm.nih.gov).
Amiga port and JPEG support added by Günther Röhrich
(Guenther@studbox.uni-stuttgart.de)
3 March 1994 6