[l2h] pnmtopng image convertion

Aline da Rocha Gesualdi aline@cbpf.br
Tue, 19 Feb 2002 00:10:21 -0300


I'm having problems in creating images for the formulas in latex2html. This 
error always occurs:

Generating postscript images using dvips ...
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)
' TeX output 2002.02.18:2335' -> /tmp/l2h803/image
(-> /tmp/l2h803/image001) <texc.pro><special.pro><color.pro>[1]
(-> /tmp/l2h803/image002) <texc.pro><special.pro><color.pro>[2]
Converting image #1
pstoimg: Error: "/usr/bin/pnmcrop < /tmp/l2h803/p819.pnm | /usr/bin/pnmcrop 
-bot | /usr/bin/pnmcrop -l | /usr/bin/pnmcrop -r | /usr/bin/pnmcrop -l | 
/usr/bin/pnmtopng -interlace -trans '#ffffff'  > img1.png" failed: Illegal seek
Error while converting image
Converting image #2
pstoimg: Error: "/usr/bin/pnmtopng -interlace -trans '#ffffff' < 
/tmp/l2h803/p830.pnm  > img2.png" failed: Illegal seek
Error while converting image
----------------

My version of latex2html is latex2html-2K.1beta and my opperational system 
is Linux Conectiva 6.0
I tried to install libpng 1.2.1, zlib 1.1.3 and netpbm release 9.9, but 
some errors occurs during the installation.

Does anyone know how to install the pnmtopng and pnmcrop in order to make 
latex2html works?
----------------

Erros in the instalation of netpbm release 9.9:
[root@Aline netpbm-9.9]# make
make -C pbm all
make[1]: Entering directory `/opt/netpbm-9.9/pbm'
make -C pbmtoppa all
make[2]: Entering directory `/opt/netpbm-9.9/pbm/pbmtoppa'
cd ../../pbm ; make libpbm.so
make[3]: Entering directory `/opt/netpbm-9.9/pbm'
make[3]: `libpbm.so' is up to date.
make[3]: Leaving directory `/opt/netpbm-9.9/pbm'
make[2]: Leaving directory `/opt/netpbm-9.9/pbm/pbmtoppa'
make[1]: Leaving directory `/opt/netpbm-9.9/pbm'
make -C pgm all
make[1]: Entering directory `/opt/netpbm-9.9/pgm'
cd ../pbm ; make libpbm.so
make[2]: Entering directory `/opt/netpbm-9.9/pbm'
make[2]: `libpbm.so' is up to date.
make[2]: Leaving directory `/opt/netpbm-9.9/pbm'
make[1]: Leaving directory `/opt/netpbm-9.9/pgm'
make -C ppm all
make[1]: Entering directory `/opt/netpbm-9.9/ppm'
cd ../pbm ; make libpbm.so
make[2]: Entering directory `/opt/netpbm-9.9/pbm'
make[2]: `libpbm.so' is up to date.
make[2]: Leaving directory `/opt/netpbm-9.9/pbm'
cd ../pgm ; make libpgm.so
make[2]: Entering directory `/opt/netpbm-9.9/pgm'
cd ../pbm ; make libpbm.so
make[3]: Entering directory `/opt/netpbm-9.9/pbm'
make[3]: `libpbm.so' is up to date.
make[3]: Leaving directory `/opt/netpbm-9.9/pbm'
make[2]: Leaving directory `/opt/netpbm-9.9/pgm'
gcc -c -I.. -I../pgm -I../pbm -I../shhopt -I/usr/include/jpeg -pedantic -O3 
-Wall -Wno-uninitialized  -o ppmtojpeg.o ppmtojpeg.c
ppmtojpeg.c:31: jpeglib.h: No such file or directory
make[1]: *** [ppmtojpeg.o] Error 1
make[1]: Leaving directory `/opt/netpbm-9.9/ppm'
make: *** [ppm] Error 2
[root@Aline netpbm-9.9]#

--Aline