[l2h] Re: image conversion problem in latex2html
Chittaranjan Mandal
chitta@cse.iitkgp.ernet.in
Fri, 21 Sep 2001 15:53:37 +0530 (IST)
You suggested:
1.Find out which version of pnmcrop you have installed on your system:
$ pnmcrop --version
pnmcrop: Version: Netpbm 9.5
pnmcrop: Compiled Thu Aug 10 10:46:39 EDT 2000 by user "prospector"
pnmcrop: BSD defined
pnmcrop: RGB_ENV='RGBDEF'
pnmcrop: RGBENV= 'RGBDEF' (env vbl is unset)
2.Go to the directory /tmp/l2h3073
Are the files still present : image001.ps image002.ps p3086.pnm etc.
If so, take each part of the command that failed, and do it separately:
/usr/bin/pnmcrop -verbose < /tmp/l2h3073/p3086.pnm > test.pnm
/usr/bin/pnmcrop -verbose -bot -black < test.pnm > test2.pnm
/usr/bin/pnmcrop -verbose -l -black < test2.pnm > test3.pnm
$ /usr/bin/pnmcrop -verbose < /tmp/l2h6757/p6926.pnm> test.pnm
usage: pnmcrop [-white|-black] [-left] [-right] [-top] [-bottom] [pnmfile]
Now without the -verbose flag:
$ /usr/bin/pnmcrop < /tmp/l2h6757/p6926.pnm> test.pnm
pnmcrop: cropping 2 rows off the top
pnmcrop: cropping 2 rows off the bottom
pnmcrop: cropping 2 cols off the left
pnmcrop: cropping 5 cols off the right
$ /usr/bin/pnmcrop -bot -black < test.pnm > test2.pnm
pnmcrop: -black - No such file or directory
Now some other tries:
$ /usr/bin/pnmcrop -bot-black < test.pnm > test2.pnm
usage: pnmcrop [-white|-black] [-left] [-right] [-top] [-bottom] [pnmfile]
$ /usr/bin/pnmcrop -black < test.pnm > test2.pnm
pnmcrop: cropping 3 rows off the bottom
pnmcrop: cropping 2 cols off the left
$ /usr/bin/pnmcrop -black -bottom < test.pnm > test2.pnm
pnmcrop: -bottom - No such file or directory
$ /usr/bin/pnmcrop -black < test.pnm > test2.pnm
pnmcrop: cropping 3 rows off the bottom
pnmcrop: cropping 2 cols off the left
$ /usr/bin/pnmcrop -bot < test.pnm > test2.pnm
pnmcrop: cropping 3 rows off the bottom
Clearly my version of pnmcrop does not like the flags with which it get
invoked by latex2html.
------------ On 21 Sep, "Ross Moore" wrote: ------------
> Please help me out with this problem.
>
> Please find the messages generated:
> -----------------------------------
> *** processing 2 images ***
>
> Generating postscript images using dvips ...
> This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)
> ' TeX output 2001.09.20:1849' -> /tmp/l2h3073/image
> (-> /tmp/l2h3073/image001) <texc.pro>[1] (-> /tmp/l2h3073/image002)
> <texc.pro>[2]
> Converting image #1
> pstoimg: Error: "/usr/bin/pnmcrop -verbose < /tmp/l2h3073/p3086.pnm | /usr/bin/pnmcrop -verbose -bot -black | /usr/bin/pnmcrop -verbose -l -black > /tmp/l2h3073/p3086.t00" failed: Illegal seek
Find out which version of pnmcrop you have installed on your system:
pnmcrop --version
should give necessary information.
Go to the directory /tmp/l2h3073
Are the files still present : image001.ps image002.ps p3086.pnm etc.
If so, take each part of the command that failed, and do it separately:
/usr/bin/pnmcrop -verbose < /tmp/l2h3073/p3086.pnm > test.pnm
/usr/bin/pnmcrop -verbose -bot -black < test.pnm > test2.pnm
/usr/bin/pnmcrop -verbose -l -black < test2.pnm > test3.pnm
Which one fails ?
If the first, then probably all will fail.
I'd guess that you need to upgrade the netpbm utilities.
That's all I can suggest until you provide more specific
information after having done some testing.
Hope this helps,
Ross Moore
> Error while converting image
>
> Error: Cannot read 'img1.png': No such file or directory
> Converting image #2
> pstoimg: Error: "/usr/bin/pnmcrop -verbose < /tmp/l2h3073/p3093.pnm | /usr/bin/pnmcrop -verbose -bot -black | /usr/bin/pnmcrop -verbose -l -black > /tmp/l2h3073/p3093.t00" failed: Illegal seek
>
> Error while converting image
>
> Error: Cannot read 'img2.png': No such file or directory
>
> Doing section links ......
>
> *********** WARNINGS ***********
>
> Failed to convert image /tmp/l2h3073/image001.ps
>
> Failed to convert image /tmp/l2h3073/image002.ps
-- Chitta