<html>
<body>
<font size=3>I've discovered that the problem goes away if I
replace<br><br>
\usepackage{graphics}<br><br>
with<br><br>
\usepackage{graphicx}<br><br>
(I also updated to ghostscript-8.64, which did not seem to make any
difference.)<br><br>
Julius<br><br>
At 04:13 PM 3/13/2009, Julius Smith wrote:<br>
<blockquote type=cite class=cite cite="">Somewhere around
ghostscript-8.63 (and presumably somewhat earlier),<br>
all images generated by the latex2html's pstoimg utility became
empty.<br>
&nbsp;Some debugging revealed that the problem could be worked around
by<br>
disabling the $have_geometry variable in pstoimg. This results in no<br>
translation or cropping of the image when converting from PostScript<br>
to .pnm using gs. The cropping is then done later by pnmcrop. Fixing<br>
this bug will speed up image translation. I first noticed the
problem<br>
very recently (on Fedora 10 and Mac OS X).<br><br>
Here is the relevant diff for pstoimg:<br><br>
diff -cb pstoimg-prv pstoimg<br>
*** pstoimg-prv Sat Dec 27 04:54:49 2008<br>
--- pstoimg&nbsp;&nbsp;&nbsp;&nbsp; Fri Mar 13 03:39:48 2009<br>
***************<br>
*** 961,967 ****<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $bbw =
int($bbw + 0.99);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $bbh =
int($bbh + 0.99);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $GEOMETRY =
&quot;${bbw}x${bbh}&quot;;<br>
!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$have_geometry = 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
--- 968,974 ----<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $bbw =
int($bbw + 0.99);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $bbh =
int($bbh + 0.99);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $GEOMETRY =
&quot;${bbw}x${bbh}&quot;;<br>
! #jos:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$have_geometry = 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
***************<br>
*** 1001,1007 ****<br>
&nbsp;&nbsp;&nbsp;&nbsp; $bbw += 10;&nbsp; # add a 5pt margin for
safety<br>
&nbsp;&nbsp;&nbsp;&nbsp; $bbh += 40;&nbsp; # add a 20pt margin for
safety<br>
&nbsp;&nbsp;&nbsp;&nbsp; $GEOMETRY = &quot;${bbw}x$bbh&quot;;<br>
!&nbsp;&nbsp;&nbsp;&nbsp; $have_geometry = 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp; if($have_geometry) {<br>
&nbsp;&nbsp;&nbsp;&nbsp; $gs_size = &quot;-g$GEOMETRY &quot;;<br>
--- 1008,1014 ----<br>
&nbsp;&nbsp;&nbsp;&nbsp; $bbw += 10;&nbsp; # add a 5pt margin for
safety<br>
&nbsp;&nbsp;&nbsp;&nbsp; $bbh += 40;&nbsp; # add a 20pt margin for
safety<br>
&nbsp;&nbsp;&nbsp;&nbsp; $GEOMETRY = &quot;${bbw}x$bbh&quot;;<br>
! #jos:&nbsp;&nbsp;&nbsp; $have_geometry = 1;<br>
&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp; if($have_geometry) {<br>
&nbsp;&nbsp;&nbsp;&nbsp; $gs_size = &quot;-g$GEOMETRY &quot;;<br><br>
Needless to say, this is just a workaround for the problem, and
really<br>
the arguments to ghostscript should be properly debugged.<br><br>
-- <br>
&quot;Anybody who knows all about nothing knows everything&quot; --
Leonard Susskind<br>
_______________________________________________<br>
latex2html mailing list<br>
latex2html@tug.org<br>
<a href="http://tug.org/mailman/listinfo/latex2html" eudora="autourl">
http://tug.org/mailman/listinfo/latex2html</a></blockquote>
<x-sigsep><p></x-sigsep>
<br>
Julius O. Smith III &lt;jos@ccrma.stanford.edu&gt;<br>
Prof. of Music and Assoc. Prof. (by courtesy) of Electrical
Engineering<br>
CCRMA, Stanford University<br>
<a href="http://ccrma.stanford.edu/~jos/" eudora="autourl">
http://ccrma.stanford.edu/~jos/</a> </font></body>
</html>