[l2h] pstoimg conversion fail

Pavel Sanda sanda at atrey.karlin.mff.cuni.cz
Wed Nov 8 16:24:29 CET 2006


hello,

having failed to find the maintainer of pstoimg,
which is part of the latex2html, i send it here...


pstoimg fails to convert certain postscript image
when running "pstoimg bum.ps"
(see attachment)

when i looked more deeply into the problem, it
seems that pstoimg wrongly create .pnm file -
pnm wrongly contains two images instead of one
(see "pamfile -allimages" for the interim pnm file )
and the reason is the "showpage" command during
the call of the ghostcript in pstoimg.

when i comment out that command, it creates only 
one image in .pnm and netpbm utilities dont complain
anymore.

interestingly, when i try to run pstoimg bum2.ps
which is the same file, but in monochromatic
version, there is no problem.

one possibility howto repair it is to give 
correct command to ghostscript (however i'm not
experienced with its commands, so i'm not sure 
whether removing of showpage doesnt harm something 
else).
second possibility is to use 'pampick 0' for picking
the only the first image before 'ppmquant' calling from
pstoimg.

pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bum.ps
Type: application/postscript
Size: 15385 bytes
Desc: not available
Url : http://tug.org/pipermail/latex2html/attachments/20061108/8eb3ec0b/attachment-0002.ps 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bum2.ps
Type: application/postscript
Size: 15811 bytes
Desc: not available
Url : http://tug.org/pipermail/latex2html/attachments/20061108/8eb3ec0b/attachment-0003.ps 


More information about the latex2html mailing list