Upload Applet Corrupts Image
ijefferyes
Joined: 2005-11-01
Posts: 9 |
Posted: Tue, 2007-06-19 19:07 | |||
Hi, When I try and upload the images using the upload applet, the image appears to upload correctly, with no errors, but when I try and view the image it does not appear, neither thumbnail or image. If I ftp the image and view it, the colours are all wrong and it appears that the file has been corrupted on the upload. I have checked the settings against a gallery that I already have working and I can't see any differences. I have attached the details of the gallery below. The image toolkit set as the highest priority is ImageMagick and I am choosing to resize the image on upload. The image size set in the album is 640*640. Any help greatly appreciated. Ian
System Information is: PHPInfo Link (see FAQ): http://www.fredameadows.net/gallery2/phpinfo.php PHP version (e.g. 4.3.11):
|
||||
Posts: 9
Hi,
Please can someone have a look at this, as the mother in law is starting to doubt my technical ability, which of course would be grounds for divorce.
Cheers
Ian
Posts: 9
Hi have just checked and it is definitely the resize that is messing up the image as it can be loaded without the re-size. The following is a log of a working gallery and not working gallery from the Java Console.
There seems to be a difference on the object that is being uploaded. But, I can't work out where this is coming from.
Working Gallery
8888500|TRACE|AppletMini|Invoking Javascript method 'startingUpload' with [Ljava.lang.Object;@1beab41
8889313|TRACE|UploadProg|OsShutdown not supported, hiding checkbox
8889360|TRACE|GalComm2 |Still logged in to http://www.jefferyes.net/gallery2/
8889360|INFO |GalComm2 |Will upload using UTF-8 for text data
8889360|INFO |GalComm2 |Preparing to upload...
8889360|TRACE|GalComm2 |add-item parameters: [HTTPClient.NVPair[name=cmd,value=add-item], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=set_albumName,value=3790], HTTPClient.NVPair[name=caption,value=6034413570014-13494-1.jpg, encoding=UTF-8], HTTPClient.NVPair[name=force_filename,value=6034413570014-13494-1.jpg], null]
8895750|TRACE|ImageUtils|Java resized C:\Documents and Settings\All Users\Documents\My Pictures\2007 Q2\6034413570014-13494-1.jpg to C:\DOCUME~1\Ian\LOCALS~1\Temp\thumbs-Ian\jres-1955567351.jpg
8895750|TRACE|ImageUtils|Time: 6390 - Avg: 6478
8895750|TRACE|GalComm2 |Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=add-item], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_form[set_albumName],value=3790], HTTPClient.NVPair[name=g2_form[caption],value=6034413570014-13494-1.jpg, encoding=UTF-8], HTTPClient.NVPair[name=g2_form[force_filename],value=6034413570014-13494-1.jpg], null, HTTPClient.NVPair[name=g2_controller,value=remote.GalleryRemote]]
8895750|TRACE|GalComm2 |Connecting to: http://www.jefferyes.net/gallery2/main.php
8895750|TRACE|GalComm2 |Path: /gallery2/main.php
8895750|TRACE|GalComm |Sending cookie: GALLERYSID=5005ca100120947781bcee09a87c1908; path=/gallery2/; domain=.www.jefferyes.net
8897594|TRACE|GalComm2 |Content-type: text/plain; charset=UTF-8
8897594|TRACE|GalComm2 |#__GR2PROTO__
status=0
status_text=Add photo successful.
item_name=3818
debug_user=admin
debug_time=0.146s
auth_token=96a3cb92dcae
8897594|INFO |GalComm2 |Upload successful
8897594|TRACE|AppletMini|Invoking Javascript method 'uploadedOne' with [Ljava.lang.Object;@1749bbd
8897594|TRACE|AppletMini|Invoking Javascript method 'doneUploading' with [Ljava.lang.Object;@cda1ef
Not Working Gallery
1569000|TRACE|AppletMini|Invoking Javascript method 'startingUpload' with [] on [object Window]
1569328|TRACE|UploadProg|OsShutdown not supported, hiding checkbox
1569391|TRACE|GalComm2 |Still logged in to http://www.jefferyes.net/gallery3/
1569391|INFO |GalComm2 |Will upload using UTF-8 for text data
1569391|INFO |GalComm2 |Preparing to upload...
1569391|TRACE|GalComm2 |add-item parameters: [HTTPClient.NVPair[name=cmd,value=add-item], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=set_albumName,value=7], HTTPClient.NVPair[name=caption,value=6034413570014-13494-1.jpg, encoding=UTF-8], HTTPClient.NVPair[name=force_filename,value=6034413570014-13494-1.jpg], null]
1571609|TRACE|ImageUtils|Java resized C:\Documents and Settings\All Users\Documents\My Pictures\2007 Q2\6034413570014-13494-1.jpg to C:\DOCUME~1\Ian\LOCALS~1\Temp\thumbs-Ian\jres66663305.jpg
1571609|TRACE|ImageUtils|Time: 2218 - Avg: 2165
1571609|TRACE|GalComm2 |Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=add-item], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_form[set_albumName],value=7], HTTPClient.NVPair[name=g2_form[caption],value=6034413570014-13494-1.jpg, encoding=UTF-8], HTTPClient.NVPair[name=g2_form[force_filename],value=6034413570014-13494-1.jpg], null, HTTPClient.NVPair[name=g2_controller,value=remote.GalleryRemote], HTTPClient.NVPair[name=g2_authToken,value=7cef6f8c2bd3]]
1571609|TRACE|GalComm2 |Connecting to: http://www.jefferyes.net/gallery3/main.php
1571609|TRACE|GalComm2 |Path: /gallery3/main.php
1571609|TRACE|GalComm |Sending cookie: GALLERYSID=49f50787b8b6484304cf6a8819db945b; path=/gallery3/; domain=.www.jefferyes.net
1573594|TRACE|GalComm2 |Content-type: text/plain; charset=UTF-8
1573594|TRACE|GalComm2 |#__GR2PROTO__
status=0
status_text=Add photo successful.
item_name=37
debug_user=admin
debug_time=0.122s
auth_token=7cef6f8c2bd3
1573594|INFO |GalComm2 |Upload successful
1573594|TRACE|AppletMini|Invoking Javascript method 'uploadedOne' with [37, 6034413570014-13494-1.jpg] on [object Window]
1573625|TRACE|AppletMini|Invoking Javascript method 'doneUploading' with [] on [object Window]
Cheers
Ian
Posts: 32509
topic moved to the GR forums. the applet is part of the GR product-line.
Summary:
The applet's Java-based resize operation seems to result in a corrupt image.
Question:
What's the color-space of your image(s)? sRGB?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 9
The pictures I am trying to upload are just JPEGs taken straight from my camera.
The weird thing is that the installations of working and non-working Gallery2s are on exactly the same host: Siteground.
The main difference is that the one that works was installed a while ago and upgraded. The one that doesn't was installed via fantastico recently.
I have tried two installations and both have not worked, so I don't think it can be anything to do with the images.
Ian
Posts: 9
I still haven't got this to work without having ImageMagick installed locally on my PC.
I have just created a gallery for friends and family to upload their pictures. But, I don't want to have to ask them to load ImageMagick onto each of their PCs.
So, if someone has an answer for this I would be very grateful.
Upload Applet 1.7
Remote 1.9
Cheers
Ian
Posts: 9
*bump*
i got a similiar problem with fucked up colors when using the "resize before upload" function (well not actually me but user on my website)
two people had that problem until now, they both use vista (could this be the reason?)
i tried logging in as one of this users and uploading a file which was corrupted when this user uploaded it - and when i did it everything was fine...
Posts: 3
hi
I still have the same problem, either using GD, ImageMagick or NetPBM
Posts: 9
do you use vista?
Posts: 1
I'm going to resurrect this thread...I am having the same exact issues. I think it does have something to do with Vista, although it boggles my mind why. I've sat for hours trying to figure this out, and everytime I add pictures via Upload Applet on my Vista desktop, the images didn't come out. After reading this thread, I uploaded the same images on my XP laptop bia Upload Applet, and the images came out perfect!!! WHY IS VISTA CAUSING ALL THE PROBLEMS??? This is stupid...