[l2h] Problem with rotated Graphics Files

JB_McKitterick JB_McKitterick <jbmck@batc.allied.com>
Mon, 09 Aug 1999 11:30:34 -0400


I've recently upgraded to L2H99.1, and suddenly .eps files that
previously were converted to gif correctly are failing. The problem
seems to go away if I do not rotate the graphics, i.e.,

this fails:

    \includegraphics[width=4in, angle=-90]{sd_sweep.eps}

but this works:

    \includegraphics[width=4in]{sd_sweep.eps}

Debug output for the failing (rotated) case is

/usr/local/latex2html/pstoimg -debug  -tmp l2h22650/  -gif -debug
-discard -interlace -antialias -depth 1 -scale 1.6 -geometry 449x288
-margins 72,72 -transparent -out img1.gif l2h22650/image001.ps

current directory is /tmp_mnt/home/jbmck/public_html/devmeas/17597/junk/
...
temp directory is l2h22650/ ...
pstoimg: EPSF dimensions are 290x337
Running /usr/local/bin/gs -q -dNOPAUSE -dNO_PAUSE  -sDEVICE=ppmraw
-g464x539 -r115 -dTextAlphaBits=4  -sOutputFile=image001.ppm > /dev/null
GS>-128 -719 translate
GS>(image001.ps) run
GS>showpage
GS>quit
file basename : l2h22650/image001 
Converting image001.ppm to img1.gif
Input file: image001.ppm Output file: img1.gif
Image is PPM, 464x539
Running /usr/local/bin/pnmcrop < image001.ppm | /usr/local/bin/ppmquant
-floyd 256 | /usr/local/bin/ppmtogif -interlace -trans \#ffffff  >
img1.gif
pnmcrop: cropping 539 rows off the top
pnmcrop: cropping 463 cols off the left
ppmquant: making histogram...
ppmquant: 0 colors found
ppmquant: choosing 256 colors...
ppmtogif: EOF / read error reading magic number
pstoimg: Conversion failed: No such file or directory

The only difference between this and the non-rotated case would seem to
be in the translate command to ghostscript. Has this been miscalculated,
so that the graphics is rotated off the page, resulting in a blank
output which gets cropped away to nothing???

Latex, of course, seems to think everything is fine...

-- 
John McKitterick                         jbmck@batc.allied.com
AlliedSignal Microelectronics and Technology Center
Columbia, MD                             (410) 964-4068
 --------------------------------------------------------
| "It's tomorrow that counts. So you worry all the time. |
| It never ends. Lord, baseball is a worrying thing."    |
 --------------------------------------------------------