Uploading via java applet (with resize enable) goes wrong!

Cybex

Joined: 2005-12-29
Posts: 7
Posted: Sat, 2007-07-14 07:59

Hello everybody,

I have searched this forum yesterday evening and this morning, I did find other users with the same problem, but I didn't find any solution yet. This is the problem:

When I upload an image via web upload, everything works fine.
When I upload an image via the upload applet (resize pictures turned OFF), everything works fine.
When I upload an image via the upload applet (resize pictures turned ON), no image is showing!

After the upload applet is done, it says: "Upload completed" without an error message. The "thumbnail" is totally black (http://www.nogravity.nl/main.php?g2_view=core.DownloadItem&g2_itemId=152&g2_serialNumber=1) and the images shows a red cross (http://www.nogravity.nl/main.php?g2_view=core.DownloadItem&g2_itemId=151&g2_serialNumber=1).

Could you please help me further with this? I'm starting a gallery because my wife is pregnant and the baby may pop out any time soon (could be this evening :)). I'd like to share pics via the gallery.


Gallery version = 2.2.2 core 1.2.0.4
PHP version = 4.4.7 apache
Webserver = Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8b PHP/4.4.7 mod_perl/1.29 FrontPage/5.0.2.2510
Database = mysqlt 4.1.21-standard-log, lock.system=flock
Toolkits = Gd, LinkItemToolkit, SquareThumb, Thumbnail
Acceleration = none, none
Operating system = Linux web2.nogravity.nl 2.6.20-1.2952.fc6 #1 SMP Wed May 16 17:59:13 EDT 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Rows in GalleryAccessMap table = 17
Rows in GalleryAccessSubscriberMap table = 7
Rows in GalleryUser table = 3
Rows in GalleryItem table = 5
Rows in GalleryAlbumItem table = 5
Rows in GalleryCacheMap table = 0

 
Cybex

Joined: 2005-12-29
Posts: 7
Posted: Sat, 2007-07-14 15:40

Somebody please? Give me a clue, so I can try something myself. I am out of clues right now :)

 
Cybex

Joined: 2005-12-29
Posts: 7
Posted: Sun, 2007-07-15 07:50

Aargh, I tried several things now and I cannot get this to work.

Installed gallery2 on Fedora Core 4: same problem
Installed gallery2 on Fedora Core 6: same problem
Installed all kinds of image processors (netpbm, imagemagick, gd): same problem

This is a clean install, why doesn't this work? Has this got to do with Java on my computer (Windows Vista, Java 1.6)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2007-07-15 15:00

as a temporary fix i suggest you disable client-side resizing of your applet.

go to site admin -> upload applet.

and add the override variable

resizeBeforeUpload with the value "false"

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Cybex

Joined: 2005-12-29
Posts: 7
Posted: Mon, 2007-07-16 07:24

So then no resizing will be done at all?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-07-16 09:01

no resize before upload.
gallery still generates resized image versions on the server...

if you want smaller original / fullsize images, you have multiple options:
- server-side resizing: use g2's sizelimit module
- client-side resizing: get GR's / the applet's resizing to work
- client-side resizing: use the windows publishing wizard (g2's publish xp module)
- client-side resizing: resize your images in a batch with irfanview or another tool

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Cybex

Joined: 2005-12-29
Posts: 7
Posted: Mon, 2007-07-16 09:09

Oooh, I thought that resizing wasn't done on the server. Thanks for your reply!

 
ijefferyes

Joined: 2005-11-01
Posts: 9
Posted: Thu, 2007-08-09 22:46

Hi,

Did you ever get client side resizing to work? I am having a similar problem and unless I have imagemagick installed on my PC it will not correctly upload pictures via the applet. It says the pictures are uploaded, but the files are corrupt.

I have made sure the applet and the remote are the latest versions. The Java version on my PC is 1.6.0_01.

Cheers

Ian