unable to make the thumbnail

[flytox]
[flytox]'s picture

Joined: 2002-09-11
Posts: 1
Posted: Wed, 2002-09-11 21:50

hi all!
i've seen many questions about this subject, and i'm myself in trouble with my config.
i'm running on 0.7.2.1-phoenix quite well and i also uploaded gallery 1.3.1 and then
when i try to upload a new image i receive a msg error

Quote:
Processing status...
- Adding 016.jpg
Error: Unable to make thumbnail (0)!

then i looked trough the gallery faq and didn't find sumthing interesting.
so i decided to re-entre the gallery set-up and to turn the debug mode on
i also get another error msg but maybe more helpfull for those who had the same problem than me.

Quote:
Processing status...
- Adding 016.jpg
Executing:

/usr/local/netpbm/bin/jpegtopnm /home/welovetechno/www/albums/flyers/016_G.jpg | /usr/local/netpbm/bin/pnmfile --allimages

Results:
stdin: Image 0: PPM raw, 411 by 329 maxval 255

Error messages:
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

/usr/local/netpbm/bin/jpegtopnm /home/welovetechno/www/albums/flyers/016_G.jpg | /usr/local/netpbm/bin/pnmfile --allimages

Results:
stdin: Image 0: PPM raw, 411 by 329 maxval 255

Error messages:
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

/usr/local/netpbm/bin/jpegtopnm /home/welovetechno/www/albums/flyers/016_G.jpg | /usr/local/netpbm/bin/pnmscale -xysize 150 150 | /usr/local/netpbm/bin/pnmtojpeg --quality=95 > /home/welovetechno/www/albums/flyers/016_G.thumb.jpg

Results:
none

Error messages:
jpegtopnm: WRITING PPM FILE
pnmtojpeg: INTERNAL ERROR: invalid number of input components in translate_row()
pnmscale: Error writing single byte sample to file
jpegtopnm: Error writing single byte sample to file

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

i really hope to find a solution because this is really annoying and the gallery feature is the last thing i need to build a great website of my own.

thanks in advance and sorry for the length!

:wink:
david

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 04:04
Quote:
pnmtojpeg: INTERNAL ERROR: invalid number of input components in translate_row()

Ahem. This is FAQ C.16 :smile:

 
Knightsabre

Joined: 2002-09-12
Posts: 4
Posted: Thu, 2002-09-26 01:19

I'm having a similar issue, only I think I know what my solution is. The problem is this: When I downloaded the custom NetPBM binaries, one file seemed to be missing: pnmtojpeg. Is that binary available anywhere else?

I'm running Mandrake 8.2, which, according to the FAQ, is part of my original problem with not being able to upload jpegs.

Knightsabre

 
Knightsabre

Joined: 2002-09-12
Posts: 4
Posted: Thu, 2002-09-26 02:05

Ok, I managed to work around my problem of the missing file.

I didn't have the pnmtojpeg file, but I did have the ppmtojpeg file. On a whim, I copied the ppmtojpeg file to the pnmtojpeg file, tried uploading an image, and it worked!

Don't know how or why it worked, I'm just glad it did!

Thanks! :grin:

 
hawkin
hawkin's picture

Joined: 2002-08-15
Posts: 45
Posted: Fri, 2002-10-04 13:03

I got the same problem, after I switched host, and run through the installation setup again on the new host.
Knightsabre solution made everything work.
Maybe it is because the config.php file is default set up with pnmtojpeg as the filename?
Have not tried to manually change it in the config file, but I guess that would do the same trick...