Error: Unable to make thumbnail (0)!

baha14zero

Joined: 2002-08-23
Posts: 5
Posted: Fri, 2002-08-23 13:36

Hey guys,

I need some help getting my images uploaded. I did everything possible before deciding to consult you guys for help. When I first attempted to upload images I got this error and found a FAQ about this problem and did exactly what it told me to debug but I'm still having no luck! I've searched for this problem too but none of the replies pertain to me it seems. I figure I'd have you guys tackle this one for me, thanks for any help you can give! Here is what the debugger spat out for errors:

Processing status...
- Adding finkl017.jpg

Executing:

/usr/local/netpbm/bin/jpegtopnm /home/nudmz/www/www/albums/album01/finkl017.jpg | /usr/local/netpbm/bin/pnmfile --allimages

Results:

stdin: Image 0: PPM raw, 800 by 563 maxval 255

Error messages:

jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)

Executing:

/usr/local/netpbm/bin/jpegtopnm /home/nudmz/www/www/albums/album01/finkl017.jpg | /usr/local/netpbm/bin/pnmfile --allimages

Results:

stdin: Image 0: PPM raw, 800 by 563 maxval 255

Error messages:

jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)

Executing:

/usr/local/netpbm/bin/jpegtopnm /home/nudmz/www/www/albums/album01/finkl017.jpg | /usr/local/netpbm/bin/pnmscale -xysize 150 150 | /usr/local/netpbm/bin/pnmtojpeg --quality=95 > /home/nudmz/www/www/albums/album01/finkl017.thumb.jpg

Results:

none

Error messages:

jpegtopnm: WRITING PPM FILE
option `--quality' doesn't allow an argument
pnmscale: Error writing single byte sample to file
jpegtopnm: Error writing single byte sample to file

Status: 99 (expected 0)
Error: Unable to make thumbnail (0)!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-08-23 17:36
Quote:
jpegtopnm: WRITING PPM FILE
option `--quality' doesn't allow an argument
pnmscale: Error writing single byte sample to file
jpegtopnm: Error writing single byte sample to file

FAQ C.13.

 
baha14zero

Joined: 2002-08-23
Posts: 5
Posted: Sat, 2002-08-24 02:31

thanks!

well it turns out that it's that bug in netpbm. so i followed a link in the FAQ to get the netpbm gallery binary but it seems old. it doesn't have the pnmtojpeg component needed to get the thumbnails to work. any suggestions? thanks!

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-08-24 02:57

Hmm, not sure which link you are talking about, but go to the downloads
page <!-- BBCode Start --><A HREF="http://sourceforge.net/project/showfiles.php?group_id=7130" TARGET="_blank">located here</A><!-- BBCode End --> and download the netpbm binaries for your architecture. Last I checked,
they contained the proper files.

If you still have trouble, note the path to which you placed the binaries
and rerun setup and tell it to look there for them. You can also check the
diagnostics.php page to make sure it finds everything okay.

 
baha14zero

Joined: 2002-08-23
Posts: 5
Posted: Sat, 2002-08-24 03:28

hey vallimar,

yeah, that's the link i followed too. under netpbm-gallery i downloaded the linux distribution. i tar'ed it but there is no pmntojpeg component in there. yea i made sure the gallery was pointing to the new path but it can't find that specific component. anybody else with this problem? thanks for all the help!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-08-24 03:39

"pnmtojpeg" and "ppmtojpeg" are the same file, it just got renamed in NetPBM v9.19.
After installing the new NetPBM binaries, just run the config wizard from start to finish and it'll figure out which binary you have and use it.

 
baha14zero

Joined: 2002-08-23
Posts: 5
Posted: Sat, 2002-08-24 04:22

thanks bharat but how do i tell gallery that ppmtojpeg is the same as pnmtojpeg?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-08-24 09:22

You don't have to. :smile: The config wizard is a smart cookie and will take care of it for you. Just run the wizard all the way through again.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sat, 2002-08-24 11:56

Ahh, I must have missed that when I browsed the mini-distro's.

If your impatient or don't want to rerun configure you can always try to simply
rename 'ppmtojpeg' to 'pnmtojpeg' yourself, although possibly that might not
work. Otherwise, set the config.php parameter:
$gallery->app->pnmtojpeg
to the binary you have, if you have ppmtojpeg, then replace 'pnmtojpeg' with it.
and you should be good to go.

This is probably a wasted post, but I dislike re-running the configuration for
things all the time so try to provide alternate solutions :wink:

 
baha14zero

Joined: 2002-08-23
Posts: 5
Posted: Sat, 2002-08-24 15:10

i am one happy man! so i did have to edit the config.php file to tell it that pnmtojpeg is also ppmtojpeg. it's working perfectly now so thanks to bharat and vallimar for all your help..you guys are gods!

 
rbackman

Joined: 2002-09-23
Posts: 1
Posted: Mon, 2002-09-23 10:50

renaming ppm to pnm worked for me...