Unable to upload/show images (WinXP SP1, Apache2, PHP 4.3.4)

-=hepatic=-

Joined: 2004-10-17
Posts: 1
Posted: Sun, 2004-10-17 11:20

Sorry, but i don't think that's it either! The whole problem with this is that it's random. I've been trying to upload one set of photos for 3 days, and it just hangs. After a slight change to PHP.INI it uploaded some fine, then it hung again. I've tried different versions of php (currently using 5.0.1), and both netpbm and imagemagik and nowt is solving it.

It's not a browser issue 'cos i've tried both IE and Firefox, and i'm not getting any error messages to help pin point it either... :-(

 
jv4002

Joined: 2005-04-24
Posts: 1
Posted: Sun, 2005-04-24 09:52

> If you've been stuck with a similar problem and switching to ImageMagick did it for you, please chime in! (At least then I can regain some confidence that I'm not crazy.)

A few months later, this is what fixed it for me too. Same issues with netpbm exactly as niftyken described in his excellent problem description post. I tried all the other tricks suggested in the forums and FAQ. Nothing helped and after a day of futzing around with it and being ready to drop the whole gallery thing (the whole point of using it being the elegant simplicity of gallery management that it seems to deliver), I happened across this thread, switched to ImageMagick and things work like a charm now (so far at least). Note that this failure of hanging on the upload window only occurred on larger files that I had shot with a Canon EOS Rebel (~3.5-4MB jpgs). Smaller pictures shot with other cameras had no issues. So this is either jpegtopnm choking on large files or choking on jpeg images produced by certain cameras (latter is unlikely because the jpeg standard is fairly well defined)

 
Uli60
Uli60's picture

Joined: 2005-06-03
Posts: 2
Posted: Fri, 2005-06-03 15:21
niftyken wrote:
Hey, superfriends! Just wanted to report that before I decided to throw in the towel and start over from scratch, I decided to try one last thing (right... "one last thing) -- I removed NetPBM and tried ImageMagick instead. The upload hanging problem went away! (Well, it certainly couldn't hang on jpegtopnm.exe anymore. That's a NetPBM thing.) ...
I have no idea why my server decided not to play nice with NetPBM. Anyone?

If you've been stuck with a similar problem and switching to ImageMagick did it for you, please chime in! (At least then I can regain some confidence that I'm not crazy.)

So the config that currently works for me:

-Windows XP Pro w/ SP1
-Internet Explorer 6.0.28
-Apache 2.0.50
-PHP 5.0.1 run as a CGI binary
-Gallery 1.4.4 pl2
-ImageMagick 6.0.62
(NetPBM was associated with at least one MAJOR problem.)

I'm running into similar problems with Gallery 1.5
Looking around, found to enable debug ....
shows me the following line to be executing:

c:\-exepath-\jpegtopnm e:\-pathtoimage-\IMG_0065.jpg | c:\-exepath-\pnmscale -xysize 150 150 | c:\-exepath-\pnmtojpeg --quality=90>e:\-pathtoimage-\IMG_0065.thumb.jpg

(original -exepath- and -pathtoimage- replaced with short naming)
jpegtopnm, pnmscale and pnmtojpeg are still sits in Windows taskmgr
list, nothing happens .... except on starting upload picture, the
server beeps once i've started the upload.
Ok, manualy starting above command line in DOS box.
jpegtopnm terminates with a warning message (this was the beep i've heard in the server upload mode)
JPEG Library Error
Not a JPEG file: starts with 0xd5 0x0c

Reviewing FAQ, a solution is to upgrade to the newest Gallery version ...
(C.2 I've installed Gallery and all seems well. But when I try to upload an image it says Unable to make thumbnail(0) or Invalid image. What gives?
=> /usr/bin/convert: Not a JPEG file: starts with 0x0a 0x4d (/home/uspalmer/public_html/gallery/AUTHORS). -- This is a bug that has been fixed with the latest version of Gallery, please upgrade.)

I've always the newest 1.x version !! -> 1.5 =:-O
(always checked the jpeg library, changed with different versions i've found, nothing helps)

I've found your post and descided to switch from NetPBM to ImageMagick, and hey, problem solved ! =;-)))

and .... my system configuration:
Windows NT 5.0 build 2195
Microsoft-IIS/5.0
PHP Version 4.3.11, ISAPI
Gallery 1.5 (2005-04-12)
NetPBM (netpbm_gallery-1.4-pl2-win32.zip)
ImageMagick (ImageMagick-6.2.2-1-Q16-windows-static.exe)

so answer about "Not a JPEG file"
FAQ Gallery:c.2
should be updated ... =;)

regards, uli ;-)

 
brettl

Joined: 2005-06-27
Posts: 1
Posted: Mon, 2005-06-27 22:26

Okay, so with Image Magick installed, it's installed to the default directory (under program files). Now, what do you type in for your path in the Gallery web setup section? C:/program files/image magick (i.e.)? Thanks!

Brett

 
Uli60
Uli60's picture

Joined: 2005-06-03
Posts: 2
Posted: Mon, 2005-06-27 23:25
brettl wrote:
Okay, so with Image Magick installed, it's installed to the default directory (under program files). Now, what do you type in for your path in the Gallery web setup section? C:/program files/image magick (i.e.)? Thanks!

Brett

correct.

but what i've first seen, the space in the path ....
may be this gives you some pain ?!?
don't now, just imagine ...

btw. i'm installed cygwin on my machine, so i've also installed
all Image Magick and NetPBM components into my cygwin/bin directory
that is included in my path list ...
so i'll don't need addtl. path entrys ... .-)

regards, uli ;-)