[l2h] latex2html-2015 problems: chdir to home directory, Illegal seek

Gavin Smith gavinsmith0123 at gmail.com
Fri Feb 19 07:57:36 CET 2016


On 19 February 2016 at 03:50, Shigeharu TAKENO <shige at iee.niit.ac.jp> wrote:
> shige 02/19 2016
> ----------------
>
> Gavin Smith wrote:
> | There are at least two problems that seem to appear with this:
> | * The chdir Perl command is passed an empty string which means it
> | changes to my home directory ("/home/g") instead of the directory
> | where the input fie is.
>
> Please try to use the option "-dir ./" instead of "-dir ."

This uses the right directory; thank you.

> | * Error running pnmcrop - an "Illegal seek" error occurs.
>
> I don't know well, but the following message gives hints:
>
> | pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h7172/p7196.pnm |
> | /usr/bin/pnmcrop -verbose  -bot -sides  -black  | /usr/bin/pnmcrop
> | -verbose  -l -sides  -black   > /tmp/l2h7172/p7196.t00" failed:
> | Illegal seek
>
> Please try:
>
> 1) Do latex2html with "-debug" option. This remains /tmp/l2hXXXX
>   directory and image files in it.

I've attached the output from this. These lines are from pnmcrop:

pnmcrop: You cannot specify both -sides and either -black or -white
pnmcrop: You cannot specify both -sides and either -black or -white
pnmcrop: Background color is #c0c0c0
pnmcrop: Cropping 1 pixel from the left border
pnmcrop: Cropping 2 pixels from the right border
pnmcrop: Cropping 2 pixels from the top border
pnmcrop: Cropping 2 pixels from the bottom border
pnmcrop: Background color is white
pnmcrop: The image is entirely background; there is nothing to crop.
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h27263/p27287.pnm
| /usr/bin/pnmcrop -verbose  -bot -sides  -black  | /usr/bin/pnmcrop
-verbose  -l -sides  -black   > /tmp/l2h27263/p27287.t01" failed:





> 2) Do each netpbm command in error message without piping:
>
>  % /usr/bin/pnmcrop -verbose  < /tmp/l2hXXXX/p7196.pnm > tmp1.pnm
>  (XXXX and '7196' may change to different numbers)
>  % /usr/bin/pnmcrop -verbose  -bot -sides  -black < tmp1.pnm > tmp2.pnm
>  % /usr/bin/pnmcrop -verbose  -l -sides  -black < tmp2.pnm > tmp3.pnm
>
> Then, you may know which pnmcrop failed, and the reason.

Thank you for the suggestion. The error messages come from the first one:

$ /usr/bin/pnmcrop -verbose  < /tmp/l2h27263/p27287.pnm >tmp1.pnm
pnmcrop: Background color is #c0c0c0
pnmcrop: Cropping 1 pixel from the left border
pnmcrop: Cropping 2 pixels from the right border
pnmcrop: Cropping 2 pixels from the top border
pnmcrop: Cropping 2 pixels from the bottom border
pnmcrop: Background color is white
pnmcrop: The image is entirely background; there is nothing to crop.

The second one also gives:

$ /usr/bin/pnmcrop -verbose  -bot -sides  -black < tmp1.pnm > tmp2.pnm
pnmcrop: You cannot specify both -sides and either -black or -white

The final one gives a different error message:

$ /usr/bin/pnmcrop -verbose  -l -sides  -black < tmp2.pnm > tmp3.pnm
pnmcrop: Too many arguments (2).  Only need one: the input filespec

Is this a ghostscript bug?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out
Type: application/octet-stream
Size: 6524 bytes
Desc: not available
URL: <http://tug.org/pipermail/latex2html/attachments/20160219/02594bf0/attachment.obj>


More information about the latex2html mailing list