[syslinux] ppmtolss16 fix

Stephane Rouberol srouberol at free.fr
Mon May 5 14:48:19 PDT 2003


Hi!
using ppmtolss16 tool from syslinux-2.04 with an input .pnm file
created with gimp 1.2.3, I bumbed into the following error:

[root at azur syslinux-2.04]# ./ppmtolss16 < /home/sr/try.pnm > /tmp/t
./ppmtolss16: Input format error 1
[root at azur syslinux-2.04]#

The problem is that gimp adds the comment
# CREATOR: The GIMP's PNM Filter Version 1.0
at 2nd line.

Suggested fix for ppmtolss16:

108a109,110
 > # gobble any comment
 > while ( $sizes =~ /^#/) { $sizes = <STDIN>;}

cheers,
Stephane





More information about the Syslinux mailing list