"unable to make thumbnail" problem

foofighter

Joined: 2004-09-14
Posts: 14
Posted: Tue, 2004-09-14 23:05

Hi folks,

unfortunatelty I have a problem with uploading pictures and get a message like many other people do. I already read the FAQ and saw my problem but couldn't fix it. It says:

Quote:
Processing status...

- Adding img_05422.jpg
Resizing/compressing original image
No resizing required
File /home2/foofight/public_html/gallery/albums/Pics/img_05422.jpg type 2.

Executing:

'c:\gallery/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_05422.jpg' | 'c:\gallery/pnmscale' -xysize 150 150 | 'c:\gallery/ppmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_05422.thumb.jpg'

Results:
none

Debug messages::
sh: line 1: c:\gallery/jpegtopnm: No such file or directory
sh: line 1: c:\gallery/pnmscale: No such file or directory
sh: line 1: c:\gallery/ppmtojpeg: No such file or directory

Status: 127 (expected 0)
Error: Unable to make thumbnail (0)
Need help? Look in the Gallery FAQ
No email sent as no valid email addresses were found

I use Netpbm 10.24 as the picture program. The path to it is to my hardrive. Do I have to upload Netpbm or is it fine like this? Cause I tried to upload it once and it didn't work this way.....
And do I really need an installed Apache server on my PC????
Rest of the information see below.....

Thanks for any help, please help me to solve this problem,

foofighter
----
Gallery URL (optional but very useful): -
Gallery version: 1.4.4-pl2
Apache version: ?
PHP version (don't just say PHP 4, please): PHP v4.3.8
Graphics Toolkit: Netpbm 10.24
Operating system: Win XP
Web browser/version (if applicable): IE 6.0

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2004-09-15 00:00

Hello,

you need netpbm on your Server ;)
So either use the preinstalled netpbm or ImageMagick (ask your hoster)
Or upload netpbm to your server and enter the path in the configuration.

Jens

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Wed, 2004-09-15 00:33
Tim_j wrote:
Hello,

you need netpbm on your Server ;)
So either use the preinstalled netpbm or ImageMagick (ask your hoster)
Or upload netpbm to your server and enter the path in the configuration.

Jens

That"s what I thought, too. But when I enter the path in the Config Wizard [/home2/foofight/public_html/netpbm] (that's where netpbm is uploaded), it shows me this error at step 4 of the config wizard:

Quote:
Error: Could not find /home2/foofight/public_html/netpbm/ppmtojpeg. Check your NetPBM directory to see which PNG->JPEG converter you have (or just try using pnmtojpeg instead). Please check your configuration (or use ImageMagick).

So what should I do then??????
Thanks so far,

Foofighter

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Wed, 2004-09-15 01:43

ok, I uploaded another version of netbpm and the config wizard accepted it....... (version netpbm-10.18.4-bin)

but I still get the failure message when I try uploading the pictures.....

Quote:
Processing status...

- Adding img_0483.jpg
Resizing/compressing original image
No resizing required
File /home2/foofight/public_html/gallery/albums/Pics/img_0483_010.jpg type 2.

Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_010.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 150 150 | '/home2/foofight/public_html/netpbm1018bin/bin/ppmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_010.thumb.jpg'

Results:
none

Debug messages::
sh: line 1: /home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm: No such file or directory
sh: line 1: /home2/foofight/public_html/netpbm1018bin/bin/pnmscale: No such file or directory
sh: line 1: /home2/foofight/public_html/netpbm1018bin/bin/ppmtojpeg: cannot execute binary file

Status: 126 (expected 0)
Error: Unable to make thumbnail (0)
Need help? Look in the Gallery FAQ
No email sent as no valid email addresses were found

so a small difference in status (126 instead of 127), but still the same problem. please help me, i'm getting insane...... :-?

foofighter

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2004-09-15 01:47

OK ... the error does kind of look self-explanatory ...

1) Make sure that your NetPBM binaries are chmodded 0755, and also the directory (and all parent directories) they are in
2) Then, try using FAQ Gallery:c.32 to verify that the path you're using is the correct path to NetPBM

It's also worth mentioning that you need to be sure you have the right binaries for your system ... use Netcraft ( http://netcraft.com/whats ) to verify that you've downloaded the right binaries.

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Wed, 2004-09-15 02:11
alindeman wrote:
OK ... the error does kind of look self-explanatory ...

1) Make sure that your NetPBM binaries are chmodded 0755, and also the directory (and all parent directories) they are in
2) Then, try using FAQ Gallery:c.32 to verify that the path you're using is the correct path to NetPBM

It's also worth mentioning that you need to be sure you have the right binaries for your system ... use Netcraft ( http://netcraft.com/whats ) to verify that you've downloaded the right binaries.

ok, i think i'm getting closer to getting it working..... :) but it's still not working right now.....

when I start this test.php file it says that the folder should be:

Quote:
/home2/foofight/public_html/netpbm1018bin

but then again step 4 isn't working.
if i say

Quote:
/home2/foofight/public_html/netpbm1018bin/bin

i can finish the wizard properly, but uploading still impossible.

Netcraft tells me that my Server OS is Linux. [Other server infos are

Quote:
Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.8 FrontPage/5.0.2.2634a mod_ssl/2.8.19 OpenSSL/0.9.7a

I don't know if I downloaded the Linux binaries. Can you please give me a direct link (or almost direct link) to the linux binaries?! I couldn't find them by myself.......

I so close to making it work............ :x

thanks, foofighter

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2004-09-15 02:15

:) We'll try and see you through this

OK ... whatever test.php says is true ... if the config wizard doesn't recognize it, then there's something else wrong

Link to the binaries: http://sourceforge.net/project/showfiles.php?group_id=7130&package_id=14464&release_id=243256 (linux-intel is probably what you want)

Verify that you're using the Linux binaries, they're chmodded correctly, etc.. and see if the config wizard recognizes

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Thu, 2004-09-16 02:51
alindeman wrote:
:) We'll try and see you through this

OK ... whatever test.php says is true ... if the config wizard doesn't recognize it, then there's something else wrong

Link to the binaries: http://sourceforge.net/project/showfiles.php?group_id=7130&package_id=14464&release_id=243256 (linux-intel is probably what you want)

Verify that you're using the Linux binaries, they're chmodded correctly, etc.. and see if the config wizard recognizes

hi there, when I just give the folder where these unpacked binaries are in, it doesn't work.....so I put the binaries in the bin folder of the version netpbm-10.18.4-bin that I had already uploaded.
But I still have to give this folder in the config wiz so that it works....
folder:

Quote:
/home2/foofight/public_html/netpbm1018bin/bin

When I try to upload a picture now, it says:

Quote:
Processing status...

- Adding img_0483.jpg
Resizing/compressing original image
No resizing required
File /home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg type 2.

Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 150 150 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.thumb.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

'/home2/foofight/public_html/gallery/bin/jhead.exe' '/home2/foofight/public_html/temp/galleryDik8HK'

Results:
none

Debug messages::
sh: line 1: /home2/foofight/public_html/gallery/bin/jhead.exe: cannot execute binary file

Status: 126 (expected 0)
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 200 200 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.highlight.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
- Resizing img_0483_012
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 640 640 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.sized.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

'/home2/foofight/public_html/gallery/bin/jhead.exe' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg'

Results:
none

Debug messages::
sh: line 1: /home2/foofight/public_html/gallery/bin/jhead.exe: cannot execute binary file

Status: 126 (expected 0)
No email sent as no valid email addresses were found

But these files are all chmodded correctly, they are all executable......
I don't understand that....
Oh, and I can now see that a pic has been uploaded, because it shows me a "pic" with the red cross in the gallery (so the pic cannot be displayed.....)

Please help me :(

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2004-09-16 02:55

Well .. your host isn't Windows-based, so a windows-based jhead executable (jhead.exe) isn't going to work ... Grab the right jhead binary for your system (some sort of Linux/Unix) or don't use jhead.

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Thu, 2004-09-16 03:54
alindeman wrote:
Well .. your host isn't Windows-based, so a windows-based jhead executable (jhead.exe) isn't going to work ... Grab the right jhead binary for your system (some sort of Linux/Unix) or don't use jhead.

ok, I deleted the path to jhead, but it's still not working.
Failure message is now:

Quote:
Processing status...

- Adding img_0483.jpg
Resizing/compressing original image
No resizing required
File /home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg type 2.

Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 150 150 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.thumb.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 200 200 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.highlight.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
- Resizing img_0483_012
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 640 640 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/img_0483_012.sized.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
No email sent as no valid email addresses were found

Thanks,

foofighter

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Thu, 2004-09-16 04:36

Funny,

when I try to upload the pictures with "Gallery Remote" I don"t get any failure message.
But the uploaded pictures in the gallery look like this:

[img]http://img85.exs.cx/img85/3212/test12.jpg[/img]

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2004-09-16 06:37
 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Thu, 2004-09-16 22:49
h0bbel wrote:
Check FAQ Gallery:c.11

hi there, that didn't work. The albums directory is right. I tried to change the path to

Quote:
albums/Pics

(because the pictures are in this Pics folder) but then I couldn't log in any longer. Even changing the folder in the config.php didn't work. So I had to reset my admin password.....
Now I can login again but my problem isn't solved yet.......

And I had a look at the files in the "albums/Pics" folder and saw that there were some files called for example

Quote:
img_0483_001.thumb.jpg

. I have about ten of these files (the last number always changes) because I tried to upload this picture several times. But these files all have the size 0 kB and there are empty. So that's why I think that the albums folder is right but Netpbm is still not working properly and not creating right thumbnails.
When I try to delete those thumbnail files with WsFTP (version 9) it doesn't work. I don't know why.......

When I try to upload pics, it still says:

Quote:
Processing status...

- Adding Picture 151.jpg
Resizing/compressing original image
No resizing required
File /home2/foofight/public_html/gallery/albums/Pics/Picture_151.jpg type 2.

Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 150 150 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.thumb.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 200 200 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.highlight.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
- Resizing Picture_151
Executing:

'/home2/foofight/public_html/netpbm1018bin/bin/jpegtopnm' '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.jpg' | '/home2/foofight/public_html/netpbm1018bin/bin/pnmscale' -xysize 640 640 | '/home2/foofight/public_html/netpbm1018bin/bin/pnmtojpeg' --quality=90 > '/home2/foofight/public_html/gallery/albums/Pics/Picture_151.sized.jpg'

Results:
none

Debug messages::
jpegtopnm: WRITING PPM FILE

Status: 0 (expected 0)
No email sent as no valid email addresses were found

Does this say anything good or bad??
Thanks for your help so far, I really want to make this work....

foofighter

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Thu, 2004-09-16 22:57

@h0bbel or @alindeman:

maybe I can write you a PM with the adress and the password so that you can have a look at all my settings?!

 
foofighter

Joined: 2004-09-14
Posts: 14
Posted: Fri, 2004-09-17 14:28

Any suggestions or help?
It's still not working......

Thanks, foofighter

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-09-17 21:02

What is the URL for your site?