netpbm problem

Mesmer

Joined: 2002-11-20
Posts: 21
Posted: Wed, 2002-11-27 15:14

I installed Gallery. All went oke but when I try to upload photo's I get the following error msg:

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

I looked at the "gallery/setup/check_netpbm.php" page and saw the following errors:

Quote:
Checking /www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm
Error! (Expected status: 0, but actually received status: 126)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pngtopnm
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmtopng
Error! (Expected status: 0, but actually received status: 139)

everything else gave a green oke.

I looked at the FAQ but found it difficult to understand. Can someone give me clue of what's going on?

Login or register to post comments
npereira

Joined: 2002-09-24
Posts: 114
Posted: Wed, 2002-11-27 15:46

go back to the config of Gallery and put the DEBUG to ON

You will get more information as to what the problem is. Then, cut and paster the result to this thread.

NPereira

Login or register to post comments
Mesmer

Joined: 2002-11-20
Posts: 21
Posted: Wed, 2002-11-27 16:02

this is what I got after putting the debuging on

Quote:
Checking /www/g/s/www.gspweb.nl/gallery/netpbm/giftopnm
giftopnm: Using libpbm from Netpbm Version: Netpbm 9.12
giftopnm: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
giftopnm: BSD defined
giftopnm: RGB_ENV='RGBDEF'
giftopnm: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pngtopnm
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmcut
pnmcut: Using libpbm from Netpbm Version: Netpbm 9.12
pnmcut: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
pnmcut: BSD defined
pnmcut: RGB_ENV='RGBDEF'
pnmcut: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmfile
pnmfile: Using libpbm from Netpbm Version: Netpbm 9.12
pnmfile: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
pnmfile: BSD defined
pnmfile: RGB_ENV='RGBDEF'
pnmfile: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmflip
pnmflip: Using libpbm from Netpbm Version: Netpbm 9.12
pnmflip: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
pnmflip: BSD defined
pnmflip: RGB_ENV='RGBDEF'
pnmflip: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmrotate
pnmrotate: Using libpbm from Netpbm Version: Netpbm 9.12
pnmrotate: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
pnmrotate: BSD defined
pnmrotate: RGB_ENV='RGBDEF'
pnmrotate: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmscale
pnmscale: Using libpbm from Netpbm Version: Netpbm 9.12
pnmscale: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
pnmscale: BSD defined
pnmscale: RGB_ENV='RGBDEF'
pnmscale: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmtopng
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/ppmquant
ppmquant: Using libpbm from Netpbm Version: Netpbm 9.12
ppmquant: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
ppmquant: BSD defined
ppmquant: RGB_ENV='RGBDEF'
ppmquant: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/ppmtogif
ppmtogif: Using libpbm from Netpbm Version: Netpbm 9.12
ppmtogif: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
ppmtogif: BSD defined
ppmtogif: RGB_ENV='RGBDEF'
ppmtogif: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/ppmtojpeg
ppmtojpeg: Using libpbm from Netpbm Version: Netpbm 9.12
ppmtojpeg: Compiled Sat Apr 14 15:35:35 PDT 2001 by user "bharat"
ppmtojpeg: BSD defined
ppmtojpeg: RGB_ENV='RGBDEF'
ppmtojpeg: RGBENV= 'RGBDEF' (env vbl is unset)
Ok! Version: 9.12

you can view my phpinfo <!-- BBCode Start --><A HREF="http://www.gspweb.nl/forum/phpinfo.php" TARGET="_blank">here</A><!-- BBCode End -->

Login or register to post comments
npereira

Joined: 2002-09-24
Posts: 114
Posted: Wed, 2002-11-27 16:23

upload one photo to the album (directly from the gallery) and cut and paste the debug screen.

I fixed mine by changing the name of the 'ppmtojpeg' to 'pnmtojpeg' and it fixed my problem. You may want to try that after. But first, upload 1 picture and let us know what the debug screen prints out.

NPereira

Login or register to post comments
bharat
bharat's picture

Joined: 2002-05-21
Posts: 6019
Posted: Thu, 2002-11-28 22:25
Quote:
>>
Checking /www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm
Error! (Expected status: 0, but actually received status: 126)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pngtopnm
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmtopng
Error! (Expected status: 0, but actually received status: 139)
<<

Try running these three binaries by hand (like in FAQ C.2) and see what error
message you get. Eg,

/www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm -version

Login or register to post comments
bgt

Joined: 2002-11-08
Posts: 8
Posted: Thu, 2002-11-28 23:37

i also can't use netpbm but i think is because my server is in secure mode :sad:
it gives errors like this:
Warning: exec() has been disabled for security reasons in /storage/webhosting/w1000176/public_html/modules/gallery/platform/fs_unix.php on line 32

is there anyway to use netpbm in a secure server? i dont have root access

Login or register to post comments
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3469
Posted: Fri, 2002-11-29 03:50

Unfortunately, no. :sad:
Gallery needs to be able to use the exec() function to run NetPBM and other external programs. Try contacting your ISP and tell them that you want them to enable it so you can run Gallery. :smile:

-Beckett (

)

Login or register to post comments
Mesmer

Joined: 2002-11-20
Posts: 21
Posted: Fri, 2002-11-29 15:44
Quote:
>>
>>
Checking /www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm
Error! (Expected status: 0, but actually received status: 126)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pngtopnm
Error! (Expected status: 0, but actually received status: 139)

Checking /www/g/s/www.gspweb.nl/gallery/netpbm/pnmtopng
Error! (Expected status: 0, but actually received status: 139)
<<
<<

Try running these three binaries by hand (like in FAQ C.2) and see what error
message you get. Eg,

/www/g/s/www.gspweb.nl/gallery/netpbm/jpegtopnm -version

I tried figuring this thing out, but I really don't have e clue what to do. I only have ftp acces. I also read the FAQ a couple of times but I just don't understand it. :sad:

Login or register to post comments
bharat
bharat's picture

Joined: 2002-05-21
Posts: 6019
Posted: Fri, 2002-11-29 19:13
Quote:
I tried figuring this thing out, but I really don't have e clue what to do. I only have ftp acces. I also read the FAQ a couple of times but I just don't understand it. :sad:

If you really can't figure it out, you might want to ask your ISP for help.

Login or register to post comments
Mesmer

Joined: 2002-11-20
Posts: 21
Posted: Sun, 2002-12-01 18:23

Well I still don't understand the FAQ C.2 (I'm still trying :smile: )

but I noticed I have the same prblem as Saivash as stated in <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=2081&amp;1" TARGET="_blank">THIS</A><!-- BBCode End --> post.

I can upload small images but no large ones. Everything else works (slideshow etc.).

Login or register to post comments
bharat
bharat's picture

Joined: 2002-05-21
Posts: 6019
Posted: Mon, 2002-12-02 01:04

What happens when you try to upload large files?
Did you read section 8 of the README? ("8. I CAN'T UPLOAD LARGE FILES!")

Login or register to post comments
Saivash

Joined: 2002-11-03
Posts: 17
Posted: Mon, 2002-12-02 20:09

Well I did read the readme file(8) but how can i change my file size in phpini file????Can sum1 tell me in detail. do i have to tell my webhosting to change or there is a way to change it myself.

I did stated my problem in my post <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&amp;name=phpBB_14&amp;file=index&amp;action=viewtopic&amp;topic=2081&amp;#8280" TARGET="_blank">here</A><!-- BBCode End --> and seems like mesmer too have the same problem. but mine doesnt give much detail even if i turn my debug on all it gives out is :

Processing status...
- Adding Pict0101.JPG
Executing:

/home/trueafgh/public_html/netpbm/jpegtopnm /home/trueafgh/public_html/album/gallery/photos/Romeo/Pict0101.jpg | /home/trueafgh/public_html/netpbm/pnmscale -xysize 150 150 | /home/trueafgh/public_html/netpbm/ppmtojpeg --quality=95 > /home/trueafgh/public_html/album/gallery/photos/Romeo/Pict0101.thumb.jpg

Results:
none

Error messages:

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

-------------------------------------------------------------------------------------------------

as yu can see theres not much detail saying where is the problem. the only thing you kno is it says "unable to make thumbnail" :roll: . I think alot of users do have this problem. I would be happy once this problem is resolved. Bharat you can help us dats it

Login or register to post comments
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3469
Posted: Mon, 2002-12-02 20:26

Okay... here we go.

Mesmer:
Try re-uploading the three binaries that aren't working. Make absolutely sure they're uploaded in binary mode, not ASCII mode, or they'll break. It's entirely possible that you uploaded all of them in ASCII mode, and the others just *happen* to not have been affected... If that's the case, you should re-upload ALL the NetPBM binaries in binary mode.

The reason you can upload small images is because no resizing is needed (it's' smaller than the thumbnail size), so NetPBM isn't called at all ==> no problems.

Saivash:
Since your problem doesn't seem to be the same (well, follow the directions in this post just in case), I'll reply in your other post.

bgt:
As mentioned, without exec() enabled, Gallery won't be able to run. Try the <!-- BBCode Start --><A HREF="http://gallery.sourceforge.net/wiki.php?page=Web%20Hosting%20Referral%20Page" TARGET="_blank">Web Hosting Referrals</A><!-- BBCode End --> page for suggestions of Gallery-friendly ISPs.

-Beckett (

)

Login or register to post comments
Mesmer

Joined: 2002-11-20
Posts: 21
Posted: Tue, 2002-12-03 12:34
Quote:
Mesmer:
Try re-uploading the three binaries that aren't working. Make absolutely sure they're uploaded in binary mode, not ASCII mode, or they'll break. It's entirely possible that you uploaded all of them in ASCII mode, and the others just *happen* to not have been affected... If that's the case, you should re-upload ALL the NetPBM binaries in binary mode.

I deleted all my binaries and re-uploaded them in binary mode. Now everything WORKS!!!! I thought I uploaded those binaries in binary mode the first time but I gues I was wrong. Thanks you very much for the given support.

Login or register to post comments
DarkLour

Joined: 2003-06-22
Posts: 1
Posted: Sun, 2003-06-22 13:19

Cool deal. I was having same prob, gif would work but not jpegs, turns out I musta uploaded ascii instead of binary mode.

well reuploaded in binary and chmod 755 and bang it works.. great program thanks , cool forums too :)

Login or register to post comments