[l2h] Illegal seek in pstoimg

Luiz Tadeu Fernandes Eleno luiz.eleno@poli.usp.br
Fri, 16 Aug 2002 14:08:24 -0300


I have had similar problems, but the message "illegal seek" appeared 
even when converting equations to .png figure format.
Why that?

ross@ics.mq.edu.au wrote:

>>I turned debugging on, I find than an error occurs in ppmtogif (ppmtogif:
>>EOF / read error reading magic number) when the latex2html image is
>>converted.  I am using LaTeX2HTML Version 2002 (1.67).  Any ideas?
>>
> 
>Yes; your image is too large for the page-height, causing a blank
>page to be ejected, which then gets cropped to nothing:
> 
>
>>This software comes with NO WARRANTY: see the file PUBLIC for details.
>>GS>GS>>>showpage, press <return> to continue<<
>>GS>Image "/tmp/l2h22589/p22602.pnm" is PPM, 778x2087
>>Running "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm |
>>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace
>>-trans '#ffffff'  > img1.gif"
>>pnmcrop: cropping 2087 rows off the top
>>
>                    ^^^^---------------  whoa, thats throwing a lot away!
>
>>pnmcrop: cropping 777 cols off the left
>>
>                    ^^^------------------- and here.
>  Now there is no bottom or right to trim.
>
>>ppmquant: making histogram...
>>ppmquant: 0 colors found
>>
>            ^^ --------------- there would be at least 2 colours 
>                               if there was anything left of the image.
>
>>ppmquant: choosing 256 colors...
>>ppmtogif: EOF / read error reading magic number
>>
>            ^^^------------------ see, we are already at the end-of-file.
>
>>pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22589/p22602.pnm |
>>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace
>>-trans '#ffffff'  > img1.gif" failed: Illegal seek
>>
>
> 
>
>> On Fri, Aug 16, 2002 at
>>06:15:22AM -0400,
>>William T. Martin wrote: > 
>>
>>>I am getting an "illegal seek" error message in pstoimg.  According
>>>to one post, there is a fix for this in the CVS latex2html distribution,
>>>but I cannot find this.  Has anyone experienced this problem and found a
>>>solution to it?
>>>
>
>  either scale down the image in the LaTeX source,
>  or consult the manual about the  $PAPERSIZE variable.
>
>
>>>
>>> *** processing 1 images ***
>>>
>         ^^^^^^^^^^^^^^^^^^^ -----  there should be a single page for 1 image
> 
>
>>>Generating postscript images using dvips ...
>>>This is dvipsk 5.58f Copyright 1986, 1994 Radical Eye Software
>>>' TeX output 2002.08.16:0537' -> /tmp/l2h22497/image
>>>(-> /tmp/l2h22497/image001) <tex.pro><special.pro><color.pro>[1] 
>>>(-> /tmp/l2h22497/image002) <tex.pro><special.pro><color.pro>[2] 
>>>
>   
>     ... but 2 pages were produced.
>   The image is on the 2nd page.
>
>
>>>Converting image #1
>>>pstoimg: Error: "/usr/local/bin/pnmcrop < /tmp/l2h22497/p22510.pnm |
>>>/usr/local/bin/ppmquant -floyd 256 | /usr/local/bin/ppmtogif -interlace
>>>-trans '#ffffff'  > img1.gif" failed: Illegal seek
>>>
>
> This was from the blank page 1.
>
>
>>>Error while converting image
>>>
>
>Hope this helps,
>
>    Ross Moore
>
>_______________________________________________
>latex2html mailing list
>latex2html@tug.org
>http://tug.org/mailman/listinfo/latex2html
>