Unable to upload greyscale images

falz

Joined: 2002-08-17
Posts: 12
Posted: Sat, 2002-08-17 04:44

Well, I'm stumped. Whenever I upload a greyscale .jpeg, I get:

Processing status...
- Adding Untitled-3.jpg
Error: Invalid image: Untitled_3.jpg!
Need help? Look in the Gallery FAQ

Reading the FAQ suggests to upgradet netbpm, so I've just upgraded to netpbm-10.8.tgz, but it doesn't change a thing. I've also confirmed that the line:

$gallery->app->pnmDir

in config.php matches where I've installed this netpbm.

HELP! I really don't want to convert all of these pictures back to RGB just to upload, as this certainly should work.

Thanks!

 
falz

Joined: 2002-08-17
Posts: 12
Posted: Sat, 2002-08-17 19:05

Well, I havent heard from anyone but have figured it out myself, so I'll explain what happened.

I have two installs of gallery. One worked, the other didn't. One the one install that it worked with, I had downloaded the binaries of netpbm from this site. On the other, it was set to use some that I had compiled. Well, for whatever reason the ones I compiled didn't work, and I still don't know why. The auto-configure of the non-working gallery found netbpm found these others which didnt like greyscale, and used those. I manually edit config.php to point to the ones I had downloaded from gallery, and all is OK.

So, I don't know if there's something special that needs to be done when installing netbpm from themselves, but I guess I (and you) should always use the binaries from gallery if it's possible to avoid pains-in-the-asses.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-08-19 08:11

There's a bug in older versions of NetPBM that has this problem (pre v9.12) where it can't handle certain greyscale images. Sounds like that was the one you hit. :sad: