[l2h] Problem with pstoimg
Philip G. Ratcliffe
philipratcliffe at tiscali.it
Sun Apr 18 22:43:07 CEST 2004
> I've just installed Perl, Netpbm (version 10.18.4) and latex2html on my
> windows 98. The configuration worked fine but when the pstoimg script
> attempts to convert ps images, which are correctly generated, I have the
> following error message:
>
> Debug (syswait): Running "C:\Perl\bin\perl.exe
> C:\latex2html\bin\pstoimg.bat -ty
> pe gif -debug -tmp c:\windows\TEMP\l2h3381251 -discard -interlace
> -antialias -de
> pth 1 -scale 1.6 -geometry 9x23 -margins 134,72 -crop abls -transparent
> -out img
> 3.gif c:\windows\TEMP\l2h3381251\image003.ps"
> Global symbol "$PNMFILE" requires explicit package name at
> C:\latex2html\bin\pst
> oimg.bat line 1300.
> Execution of C:\latex2html\bin\pstoimg.bat aborted due to compilation
> errors.
Here's a previous posting of mine from February:
My OS: Windows 2000 Professional SP4
MiKTeX: absolutely up-to-date as of now
GhostScript: v8.13
Perl: v5.8.0
netpbm: v10.18.4
LaTe2html: v2002-2-1
Bug 1
The configuration appears to want pnmfile.exe whereas the above version of
netpbm contains pnmfile (the same holds for certain other files).
Workaround: copy pnmfile to pnmfile.exe
Bug 2
Image file creation fails with
------------------------------------------
Generating postscript images using dvips ...
C:\TeX\texmf\miktex\bin\dvips -S1 -i -Ppdf -E -E -oC:\TEMP\l2h1692\image
.\images.dvi
*** updating image cache
*** removing unnecessary images ***
extracting tex2html_wrap_inline4 as 1#1
Converting image #1
IMAGE: tex2html_wrap_inline4
pstoimg.bat: Error: "C:\Programs\GnuWin32\bin\pnmtopng -interlace -trans
gray85 < C:\TEMP\l2h1692\p672.pnm > img1.png" failed:
Error while converting image
------------------------------------------
Workaround: remove line 1264 in pstoimg.bat (I've no idea why though)
$trans_color = $TRANSPARENT_COLOR||'gray85';
Cheers, Philip G. Ratcliffe
More information about the latex2html
mailing list