Igor Pechtchanski wrote:
On Tue, 7 Jun 2005, Andrea Censi wrote:I am getting this kind of errors running latex2html: ================= Converting image #2 pstoimg: Error: "/sw/bin/pnmcrop -verbose < /tmp/l2h5343/p5405.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -l -sides > /tmp/l2h5343/p5405.t00" failed: Invalid argument Error while converting image Error: Cannot read 'img2.png': No such file or directory ================== I tried calling "pnmcrop" with the arguments (-bot -sides ecc) but it doesn't complaing, so I guess there's something wrong in the /tmp files. They get deleted so I can't replicate the exact error.Don't know about your error, but giving a -debug flag to latex2html should prevent the deletion of temp files, so you can look at them. HTH, Igor
Sorry for the delay, my thunderbird spam filter filtered you out. I found out that the second instance of pnmcrop at this line: =================================GS>Running "/sw/bin/pnmcrop -verbose < /tmp/l2h25714/p25771.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -p25729.t00 p25736.pnm p25736.t01 p25743.t00 p25750.pnm p25750.t01 p25757.t00 p25764.pnm p25764.t01 p25771.t00
l -sides > /tmp/l2h25714/p25771.t01" pnmcrop: Background color is gray70 pnmcrop: cropping 2 rows off the top pnmcrop: cropping 2 rows off the bottom pnmcrop: cropping 1 col off the left pnmcrop: cropping 3 cols off the rightpnmcrop: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty. pstoimg: Error: "/sw/bin/pnmcrop -verbose < /tmp/l2h25714/p25771.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -l -sides > /tmp/l2h25714/p25771.t01" failed:
Debug (syswait): Finished child process: #25771 at /sw/bin/latex2html line 4230 ==================================was segfaulting. That the instance with params -bot -sides. -sides is the bad one, I emailed the following to the mantainer of libnetpbm along with the file to reproduce the error
------------------------------ $ pnmcrop -verbose < bum.pnm pnmcrop: Background color is gray35 pnmcrop: Not cropping. No border found. P6 14 17 255 ... $ pnmcrop -sides < bum.pnm zsh: bus error pnmcrop -sides < bum.pnm $ pnmcrop --version pnmcrop: Using libnetpbm from Netpbm Version: Netpbm 10.24 pnmcrop: Compiled Fri Jun 3 20:15:52 CEST 2005 by user "root" pnmcrop: BSD defined pnmcrop: RGB_ENV='RGBDEF' pnmcrop: RGBENV= 'RGBDEF' (env vbl is unset)$ uname -a Darwin melania.censi 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc
Compiled via fink for Mac OS X Tiger. File bum.pnm was prepared by the latex2html script. ---------------------------------
bum.pnm
Description: Binary data
_______________________________________________ latex2html mailing list [email protected] http://tug.org/mailman/listinfo/latex2html
