magic numbers?

roy

Joined: 2002-09-11
Posts: 7
Posted: Sat, 2002-09-14 04:39

i tried to upload an image to a fresh version of gallery, andi get thi serror:

Executing:

/home/virtual/site1/fst/var/www/html/gallery/netpdm/jpegtopnm /home/virtual/site1/fst/var/www/html/albums/album01/aaliyah_001.jpg | /home/virtual/site1/fst/var/www/html/gallery/netpdm/pnmfile --allimages

Results:
stdin: Image 0:

Error messages:
pnmfile: EOF / read error reading magic number

Status: 1 (expected 0)

and when i do it from comand:
[root@ensim netpdm]# /home/virtual/site1/fst/var/www/html/gallery/netpdm/jpegtopnm /home/virtual/site1/fst/var/www/html/pics/gojira/01.jpg | /home/virtual/site1/fst/var/www/html/gallery/netpdm/pnmfile
pnmfile: EOF / read error reading magic number
stdin: [root@ensim netpdm]#

(i realize they aren't the same file, but i know for a fact the first one is a valid jpeg, cause i use it on another gallery!)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 06:28

Humm. Try breaking your commands up into two separate ones:

# jpegtopnm 01.jpg > 01.pnm
# pnmfile 01.pnm

Put the two files (01.jpg, 01.pnm) up somewhere and I'll pull them down
and look at them.

Also, check out the NetPBM diagnostics (available from the config wizard) and see if that detects anything.

 
roy

Joined: 2002-09-11
Posts: 7
Posted: Sat, 2002-09-14 16:19

[root@ensim netpdm]# /home/virtual/site1/fst/var/www/html/gallery/netpdm/jpegtopnm 0026.jpg > 0026.pnm
Segmentation fault

ahh, and the answer comes out :smile:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-09-15 08:54

Progress! What version of jpegtopnm are you using? Try "jpegtopnm --version" to find out.

Also, try using the NetPBM binaries from the Gallery download page and see if those work any better.