[l2h] pstoimg on cygwin?

Shigeharu TAKENO shige at iee.niit.ac.jp
Tue Mar 27 02:01:11 CEST 2007


shige 03/26 2007
----------------

Alle Meije Wink <alle_meije at yahoo.co.uk> wrote:

> If I use the -antialias option, pstoimg completes without complaints but 
> produces an empty .PNG file! With the option -depth alone, I still get 
> the error.

Pstoimg also fails without -antialias on our environment

 OS: Solaris 9 (sparc)
 pstoimg: 1.19
 netpbm: 10.31.0
 gs: 7.07

but it succeeds with the option as the followings:

% pstoimg -debug -antialias -depth 1 IAN_PER3rawrotation.eps
pstoimg V2002-2-1 (Revision 1.19, Perl 5.008008)
pstoimg: Temporary directory is /tmp
pstoimg: Processing IAN_PER3rawrotation.eps
pstoimg: EPSF dimensions are 792x277
pstoimg: Running /usr/local/bin/gs  -sDEVICE=ppmraw -g792x277  \
  -dTextAlphaBits=4  -sOutputFile=/tmp/p1290.pnm 
GS>-50 -50 translate
GS>(IAN_PER3rawrotation.eps) run
GS>showpage
GS>quit
GNU Ghostscript 7.07 (2003-05-17)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

GS>GS>Loading StandardSymL font from /usr/local/share/ghostscript/\
  fonts/s050000l.pfb... 1980440 623130 1743104 439014 1 done.
Loading NimbusSanL-Regu font from /usr/local/share/ghostscript/\
  fonts/n019003l.pfb... 2020632 669169 1743104 449123 1 done.
>>showpage, press <return> to continue<<
GS>>>showpage, press <return> to continue<<
GS>Image "/tmp/p1290.pnm" is PPM, 792x277
Running "/usr/local/bin/netpbm/ppmquant 256 < /tmp/p1290.pnm \
  | /usr/local/bin/netpbm/pnmtopng  > IAN_PER3rawrotation.png"
pnmcolormap: making histogram...
pnmcolormap: Scanning image 0
pnmcolormap: 21 colors so far
pnmcolormap: Scanning image 1
pnmcolormap: 21 colors so far
pnmcolormap: 21 colors found
pnmcolormap: Image already has few enough colors (<=256).  \
  Keeping same colors.
pnmremap: 21 colors found in colormap
pnmtopng: 21 colors found
pstoimg: Written IAN_PER3rawrotation.png

> As far as I understand (?), the problem is then not in gnuplot or gs, 
> but in pstoimg??? If an eps/epsf file already has a showpage, why would 
> pstoimg add one?

I think that pstoimg is the special tool for latex2html and not 
for a general purpose. It should be able to convert the eps file 
generated by dvips, but may fail for the one generated by other 
tool.

If you include the eps file in your latex file by using the 
command \includegraphics, latex2html will produce the appropriate
image file by pstoimg through latex and dvips. 

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+


More information about the latex2html mailing list