Upon finding a different image conversion program, I have eliminated the
Premature EOF problem that I had(apologies if I post this before the
moderator approves my first post...you can ignore it if/when it shows
up).
Now, I am seeing the script complete with no error.
I tested my syslinux.dpy file with the syslogo.lss file from the
samples, and it's fine.
The lss file I created, however, appears skewed and different when
displayed. There are only two color values in my input file, (I created
a small test file, that is a 10 X 10 white square containing two
vertical one-pixel black lines at the left and right edge), but there
are several output to the screen, and instead of 10 X 10 pixels, the
image is displayed over a couple of screens.
Any thoughts? What am I doing wrong, here?
-----Original Message-----
From: Stovall, Adrian M.
Sent: Tuesday, October 15, 2002 10:21 AM
To: 'syslinux at zytor.com'
Subject: Ppmtolss16 trouble...
Hi all...I (like many others, I'm sure) am trying to get a custom
graphic displayed on a LEAF-based linux firewall. I've been unable to
create an lss file without hacking ppmtolss16, and I don't think the
hack helps any.
Here's the problem. Unaltered, and using a 72 X 72 pixel source file
(P6, raw ppm), I consistently get this error message:
C:\>perl ppmtolss16.pl < ant.ppm > ant.lss
ppmtolss16.pl: Premature EOF at (71,71) of (72,72)
This is the second conversion (started out with a BMP), and both the
source BMP and the PPM are 72 X 72 pixels.
When I hack line 111 and 112 of ppmtolss16 to read:
$xsize = $1 - 1;
$ysize = $2 - 1;
The script runs with no error:
C:\>perl ppmtolss16.pl < ant.ppm > ant.lss
ppmtolss16.pl: Warning: color palette truncated (93 colors ignored) 5041
pixels, 393 bytes, (84.41% compression)
but doesn't appear to create a valid lss file.
I am running on Win2k Pro, and have the latest syslinux distro (as of
10/14/2002)
Attached are the ant.ppm and ant.lss files I am using and creating...any
help is appreciated.
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
Adrian