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... 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 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 |

Posts: 114
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
Posts: 21
this is what I got after putting the debuging on
you can view my phpinfo <!-- BBCode Start --><A HREF="http://www.gspweb.nl/forum/phpinfo.php" TARGET="_blank">here</A><!-- BBCode End -->
Posts: 114
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
Posts: 6019
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
Posts: 8
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
Posts: 3469
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 (
)
Posts: 21
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:
Posts: 6019
If you really can't figure it out, you might want to ask your ISP for help.
Posts: 21
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&name=phpBB_14&file=index&action=viewtopic&topic=2081&1" TARGET="_blank">THIS</A><!-- BBCode End --> post.
I can upload small images but no large ones. Everything else works (slideshow etc.).
Posts: 6019
What happens when you try to upload large files?
Did you read section 8 of the README? ("8. I CAN'T UPLOAD LARGE FILES!")
Posts: 17
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&name=phpBB_14&file=index&action=viewtopic&topic=2081&#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
Posts: 3469
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 (
)
Posts: 21
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.
Posts: 1
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