[l2h] [latex2html-2K.1beta] Problem with pstoimg
Jerome Gout
jgout@rational.com
Thu, 25 Oct 2001 11:50:43 +0200
Hello,
I've just install the release latex2html-2K.1beta (is it the latest
one ?) and I can't figure out to convert ps image to png image using
the perl script pstoimg.
Here is the error returned (using -debug):
....
*** processing 2 images ***
Generating postscript images using dvips ...
/usr/bin/dvips -S1 -i -E -o/tmp/l2h7788/image ./images.dvi
Debug (syswait): Running "/usr/bin/dvips -S1 -i -E -o/tmp/l2h7788/image ./images.dvi
"
at /home/jgout/bin/latex2html line 3850
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)
' TeX output 2001.10.25:1048' -> /tmp/l2h7788/image
(-> /tmp/l2h7788/image001) <texc.pro><special.pro><color.pro>[1]
(-> /tmp/l2h7788/image002) <texc.pro><special.pro><color.pro>[2]
Debug (syswait): Finished child process: #7809
at /home/jgout/bin/latex2html line 3850
Converting image #1
Debug (syswait): Running "/usr/bin/perl /home/jgout/bin/pstoimg -type png -debug -tmp /tmp/l2h7788 -discard -interlace -antialias -depth 1 -scale 1.6 -geometry 348x14 -margins 134,72 -crop ablrl -transparent -out img1.png /tmp/l2h7788/image001.ps"
at /home/jgout/bin/latex2html line 4182
Global symbol "$PNMCROPOPT" requires explicit package name at /home/jgout/bin/pstoimg line 1102.
Execution of /home/jgout/bin/pstoimg aborted due to compilation errors.
Debug (syswait): Finished child process: #7810
at /home/jgout/bin/latex2html line 4182
Error while converting image
The ps production works fine, I checked both PS images
(/tmp/l2h7788/image001.ps and /tmp/l2h7788/image002.ps) but the
problem seems to be a bug in the perl script itself ($PNMCROPOPT).
The problem is that my pnmcrop is an old one (pnmcrop: Version: Netpbm
8.4 April 2000) and so the config script that produce the final
pstoimg script skip the symbol declaration.
I guess it should also skip the usage of the undeclared symbol to
avoid the error ...
Secondly, my old version of pnmcrop doesn't recognize the -verbose
option BUT the ./config/config.pl srcipt launched by ./configure said
YES !
...
checking for ghostscript library and font paths... built-in paths are correct
checking for pnmcrop... /usr/X11R6/bin/pnmcrop
/usr/X11R6/bin/pnmcrop -verbose yes
checking for pnmflip... /usr/X11R6/bin/pnmflip
...
If I try it directly :
/home/jgout/tools/latex2html-2K.1beta/> /usr/X11R6/bin/pnmcrop -verbose
usage: pnmcrop [-white|-black] [-left] [-right] [-top] [-bottom] [pnmfile]
I'm going to update my netpnm distribution ...
Jérôme