Menu

#80 TiffTagProcessingException

open
nobody
None
5
2008-06-25
2008-06-25
Dan Berger
No

Attempting to use jUploader to resize and upload JPGs created from a Canon Rebel XSI (450D) via Bibble (http://bibblelabs.com/), I get the following exception during resize:

Could not scale photo img_0144.jpg because au.com.lastweekend.jim.io.exif.TiffTagProcessingException: 3 tags, from offset 20062exceeds data length 20104

dismissing the dialog allows upload to proceed, the image is uploaded, but is missing EXIF data.

I've tried this with both the 1.1.2 and 1.2 alphas with identical results.

I'm happy to provide a sample image via email (it's a 12MP camera, so the file is rather large).

as an aside, exiftool seems to read the EXIF tags ok, producing the following output:

1029 $ exiftool img_0144.jpg
ExifTool Version Number : 7.25
File Name : img_0144.jpg
Directory : .
File Size : 4 MB
File Modification Date/Time : 2008:06:24 22:32:48
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Big-endian (Motorola, MM)
Make : Canon
Camera Model Name : Canon EOS DIGITAL REBEL XSi
Orientation : Horizontal (normal)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Bibble 4.10a
Modify Date : 2008:06:02 08:36:38
Exposure Time : 1/100
F Number : 5.6
Exposure Program : Program AE
ISO : 200
Date/Time Original : 2008:06:02 08:36:38
Create Date : 2008:06:02 08:36:38
Shutter Speed Value : 1/99
Aperture Value : 5.7
Exposure Compensation : 0
Flash : No Flash
Focal Length : 18.0 mm
User Comment :
Sub Sec Time : 8
Exif Image Width : 4228
Exif Image Height : 2850
Focal Plane X Resolution : 4865.603516
Focal Plane Y Resolution : 4876.712402
Focal Plane Resolution Unit : inches
Exposure Mode : Auto
White Balance : Auto
Scene Capture Type : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Compression : JPEG (old-style)
Thumbnail Offset : 880
Thumbnail Length : 19194
Profile CMM Type : Lino
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:02:09 06:49:00
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : IEC
Device Model : sRGB
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Media-Relative Colorimetric
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : HP
Profile ID : 0
Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
Profile Description : sRGB IEC61966-2.1
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43607 0.22249 0.01392
Green Matrix Column : 0.38515 0.71687 0.09708
Blue Matrix Column : 0.14307 0.06061 0.7141
Device Mfg Desc : IEC http://www.iec.ch
Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant : 19.6445 20.3718 16.8089
Viewing Cond Surround : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type : D50
Luminance : 76.03647 80 87.12462
Measurement Observer : CIE 1931
Measurement Backing : 0 0 0
Measurement Geometry : Unknown (0)
Measurement Flare : 0.999%
Measurement Illuminant : D65
Technology : Cathode Ray Tube Display
Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Urgency : 0
Date Created : 2008:06:02
Time Created : 08:36:38
Application Record Version : 4
Image Width : 4228
Image Height : 2850
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Aperture : 5.6
Date/Time Created : 2008:06:02 08:36:38
Image Size : 4228x2850
Scale Factor To 35 mm Equivalent: 1.6
Shutter Speed : 1/100
Thumbnail Image : (Binary data 19194 bytes, use -b option to extract)
Circle Of Confusion : 0.018 mm
Field Of View : 63.2 deg
Focal Length : 18.0 mm (35 mm equivalent: 29.3 mm)
Hyperfocal Distance : 3.13 m
Light Value : 10.6

Discussion

  • Dan Berger

    Dan Berger - 2008-06-25

    Logged In: YES
    user_id=187463
    Originator: YES

    File Added: img_0143.html

     
  • Dan Berger

    Dan Berger - 2008-06-25

    exiftool -htmlDump

     
  • Dan Berger

    Dan Berger - 2008-06-25

    Logged In: YES
    user_id=187463
    Originator: YES

    Seems it was something about the thumbnail image in the EXIF data, using exiftool and stripping said thumbnail allowed jUploader to process the files.

    I do still have a "broken" sample image, if desired.

     

Log in to post a comment.

MongoDB Logo MongoDB