G3-Beta3: Spasmotic "upload error: Bad image file" and EXIF Problems

Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Wed, 2009-09-16 02:36

My g3-Beta3 install on my test server is giving "Upload error: Bad image file" - but only for some (but widespread) images. The "bad" details are added but do not show as thumbs or individually. However all images show fullscreen and on cooliris slideshow.

When the EXIF module is activated, all fail, including cooliris wall, yet will still fullscreen and slideshow

Also EXIF maintenance and image update routines hang on any occasion.

All images are added to the Album and Thumbs folders
But the bad ones are staying in the Uploads Folder and the 'good' ones are sitting in the Resizes Folder.

The bad ones all seem to be 2:3 aspect ratios. All images were already 640px wide. I would not have expected them to be resized.

GD graphics library is being used - I do not have ImageMagic or Graphics Magic installed on my test server.

Attached are two of the files I was test uploading:
I9132-Oil Engines.jpg is a 'bad' file
I9115-Oil Engines.jpg is a 'good' file

Both have previously uploaded successfully in my Gallery 2.1 website: http://cloake.co.nz/gallery/main.php?g2_itemId=22327

Sounds a curly one eh? Any ideas?

AttachmentSize
I9132-Oil Engines.jpg88.15 KB
 
Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Wed, 2009-09-16 02:38

The other attached file

AttachmentSize
I9115-Oil Engines.jpg55.23 KB
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Wed, 2009-09-16 02:38

What's in your gallery3/var/logs files for these uploads?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Wed, 2009-09-16 03:09

I don't seem to be getting any logs - I have just deleted the gallery albums and anything residual in the folders and repeated the upload tests, both with and without exif module activated, to check.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Wed, 2009-09-16 03:49
Quote:
When the EXIF module is activated, all fail, including cooliris wall, yet will still fullscreen and slideshow

I am able to add the image(s) you posted with the EXIF module installed.
next test; diable the IM toolkit and user GD with the EXIF module installed: Still able to install.
Do you have an original, not re-sized that exhibits the same behavior?
What editor are you using to edit the description and tags of the item?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Wed, 2009-09-16 04:44

IM is not installed on my test server so not sure if you mean me to do anything to disable it. I have been using GD all the time. My IPTC data is added in Lightroom which I also use to resize files in batches ready for upload.

I made some test jpegs including some with different sizes/resolutions/aspect ration from a RAW file in photoshop. The RAW file was original and had not had any metadata edits.

I got the same sort of results. All failed except the non 2:3 ratio 640px wide file and only when EXIF module deactivated.

I still do not get any log information.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-09-16 19:20
Quote:
My IPTC data is added in Lightroom which I also use to resize files in batches ready for upload.

Unless Lightroom is actually adding that per spec (real EXIF and real IPTC spec) and not as XMP, then it's not going to work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
richiem74

Joined: 2002-11-11
Posts: 3
Posted: Wed, 2009-09-16 21:45

I was also able to add the two images that you attached, but was having trouble adding any of my own which were straight out of my Cannon camera. It turns out I had to increase the memory_limit in my php.ini file. Although, I just happened to discover this by chance as there was nothing in any log file to indicate otherwise.

 
Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Wed, 2009-09-16 22:36

I have been successfully using Lightroom to output to G2 for several years. And you and others can upload my two files produced by lightroom.

I do XMP is seen as the new standard and Adobe are allowing for some transition with IPTC. However, I would have not questioned Lightroom was still EXIF/IPTC compliant.

Lightroom makes XMP sidecarfiles but I don't use them because I hadn't found (or don't know of) any Web Gallery Apps able to use them. (maybe G3 should work with XMP too)

Also my 'Lightroom' files and metadata read fine with other image management software, galleries etc. I have also used a range of different PHP code to extract EXIF/IPTC for other applications.

My whole workflow is built around Lightroom and as I am heavily committed to it is essential I can extend it to any new web gallery system.

I will be interested in your thoughts?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-17 00:18
Quote:
maybe G3 should work with XMP too)

If you know of any open-source tools that can read that format, that's a good starting point.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Thu, 2009-09-17 04:28

Geoff Cloake,
This is hard to fix as we have 3 users that don't see this issue with your images. if it fails there's gotta be something in the logs somewhere. /var/logs or the webservers error log.
Next step is to see if there is an error in the HTTP traffic. See if WireShark http://www.wireshark.org or tcpflow http://www.circlemud.org/~jelson/software/tcpflow/ can show some info where it fails. It has to be consistently reproduce-able to a single image to keep the info to a manageable size. Post the traces.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Thu, 2009-09-17 04:58

Geoff, from another thread I figured out that you're using Apache 1.3. Please upgrade to Apache 2, thanks.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Geoff Cloake

Joined: 2009-06-24
Posts: 31
Posted: Thu, 2009-09-17 05:35

Ok I'll look into this later on.

Sorry to be confusing - but my other thread is about a separate problem on my commercial host server where I am also unsucessfully trying to setup G3. I have no control over their version of Apache but will see if they are prepared to upgrade.

This problem is my second attempt to install on my local test server running which is running Apache 2.2.4. However I should point out that this is a windows version running on my 2003 Small Business Server.

I will look at the http traffic and will also install ImageMagic in case my problem is about resizing/aspect ratio or something more GD/EXIF specific on my setup.

Thank you for your attention so far - you guys are doing a great job and I want to help out as much as possible.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-17 05:46

Also an unsupported configuration :)

Don't know if this is what you installed, but try installing Apache, MySQL, PHP, etc on Windows using XAMPP. I did have G3 running on that a long time ago, but things have changed and I haven't tested for at least 2 releases now.

Didn't try using Imagemagick, just GD with PHP as installed from the XAMPP installer for Windows.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Hardt

Joined: 2008-11-05
Posts: 9
Posted: Tue, 2009-11-10 10:05

I have the same problem, runninb G3 on a IIS 6 and using IE8 to upload my files, but I had the problem with Firefox 3.5 too.

I am troubleshooting this and trying different methods.

It seems that if I try to upload a list of photos, most of the time, the 4 first ones works fine, and I get errors after the fifth one.

If I close the upload modal jQuery window then click on add again, the first photo works, and I get errors for all the other ones.

If I add photos one by one, no problem.

So it seems that the problem is not with the pictures themselves, because some of the pictures that failed are successfully uploaded if I put them one by one or put them in the top of my upload list.