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


Site is: http://www.fredameadows.net/gallery2

System Information is:
Gallery version = 2.2.1 core 1.2.0.1
PHP version = 4.4.4 cgi
Webserver = Apache
Database = mysqlt 4.1.21-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Gd, ImageMagick, NetPBM, SquareThumb, Thumbnail
Acceleration = none, none
Operating system = Linux serv01.siteground14.com 2.6.19.2-grsec-sg4 #6 SMP Tue Apr 17 02:13:58 CDT 2007 i686
Default theme = classic
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Rows in GalleryAccessMap table = 11
Rows in GalleryAccessSubscriberMap table = 3
Rows in GalleryUser table = 2
Rows in GalleryItem table = 2
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

PHPInfo Link (see FAQ): http://www.fredameadows.net/gallery2/phpinfo.php

PHP version (e.g. 4.3.11):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database: 4.1.21-standard-log
Activated toolkits: ImageMagick, NetPBM, GD, Ffmpeg
Operating system: Linux
Browser: Firefox 2.0.0.4

AttachmentSize
DSC02184.JPG101.52 KB
 
ijefferyes

Joined: 2005-11-01
Posts: 9
Posted: Wed, 2007-06-27 20:39

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

 
ijefferyes

Joined: 2005-11-01
Posts: 9
Posted: Wed, 2007-06-27 21:51

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-06-28 16:45

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

 
ijefferyes

Joined: 2005-11-01
Posts: 9
Posted: Thu, 2007-06-28 16:52

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

 
ijefferyes

Joined: 2005-11-01
Posts: 9
Posted: Thu, 2007-08-09 23:04

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

 
Ezeke

Joined: 2008-03-03
Posts: 9
Posted: Mon, 2008-09-29 22:22

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

Quote:
Gallery-Version = 2.2.4 Kern 1.2.0.6
PHP-Version = 4.4.8 cgi
Webserver = Apache/1.3 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8f AuthPG/1.3 FrontPage/5.0.2.2635
Datenbank = mysql 4.1.22-standard-log, lock.system=flock
Werkzeuge = Exif, ImageMagick, Thumbnail
Beschleunigung = full/172800, none/172800
Betriebssystem = Linux cers.ispgateway.de 2.4.34.1-grsec #6 SMP Tue Feb 27 09:49:45 CET 2007 i686
Standard-Motiv = matrix
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Zeilen in der GalleryAccessMap Tabelle = 57
Zeilen in der GalleryAccessSubscriberMap Tabelle = 4144
Zeilen in der GalleryUser Tabelle = 22
Zeilen in der GalleryItem Tabelle = 4137
Zeilen in der GalleryAlbumItem Tabelle = 72
Zeilen in der GalleryCacheMap Tabelle = 14097

 
dbroc

Joined: 2008-10-01
Posts: 3
Posted: Thu, 2008-10-02 09:15

hi

I still have the same problem, either using GD, ImageMagick or NetPBM

 
Ezeke

Joined: 2008-03-03
Posts: 9
Posted: Thu, 2008-10-02 19:08

do you use vista?

 
nktm

Joined: 2004-08-06
Posts: 1
Posted: Mon, 2008-12-15 06:04

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