Menu

#82 EXIF date issue

open
ianaré
Preview (6)
6
2012-09-24
2012-09-24
No

This is likely a duplicate of \"Image EXIF tag time - ID: 1756285\", but that ticket was closed with the comment \"Issue resolved through email.\" What was the actual resolution - issue with the file? Looking at my files in windows, the field looks populated, but metamorphose2 hangs while processing the first one:

Metamorphose 2.0.8.2 (beta)
Running on Python 2.7.3, wxPython 2.8.12.1

<Added insert rule with :date: tag>
status message : \'Previewed 8 items with no errors\'
<Changed to \"Exif tag - picture taken\">
status message : \'Generating 8 new names, please wait ...\'
/data/photos/20120724/20120724 001.JPG
<Hang...>

I\'ve attached a smaller sample image that also causes the issue. Thanks for maintaining the project!

Discussion

  • Devon Crouse

    Devon Crouse - 2012-09-24

    Sample file

     
  • Devon Crouse

    Devon Crouse - 2012-09-24
    • priority: 5 --> 6
     
  • Devon Crouse

    Devon Crouse - 2012-09-24

    Here's the EXIF.py output:

    (1:515)$ ./EXIF.py 20120724\ 007_resize.jpg
    20120724 007_resize.jpg:
    EXIF ApertureValue (Ratio): 4281/1441
    EXIF BrightnessValue (Ratio): 4637/11230
    EXIF ColorSpace (Short): sRGB
    EXIF ComponentsConfiguration (Undefined): YCbCr
    EXIF DateTimeDigitized (ASCII): 2012:07:24 17:54:57
    EXIF DateTimeOriginal (ASCII): 2012:07:24 17:54:57
    EXIF ExifImageLength (Long): 2048
    EXIF ExifImageWidth (Long): 1536
    EXIF ExifVersion (Undefined): 0221
    EXIF ExposureMode (Short): Auto Exposure
    EXIF ExposureProgram (Short): Program Normal
    EXIF ExposureTime (Ratio): 1/17
    EXIF FNumber (Ratio): 14/5
    EXIF Flash (Short): Not Available
    EXIF FlashPixVersion (Undefined): 0100
    EXIF FocalLength (Ratio): 77/20
    EXIF ISOSpeedRatings (Short): 400
    EXIF MeteringMode (Short): Average
    EXIF Padding (Undefined): []
    EXIF SceneCaptureType (Short): Standard
    EXIF SensingMethod (Short): One-chip color area
    EXIF Sharpness (Short): Normal
    EXIF ShutterSpeedValue (Ratio): 5221/1286
    EXIF SubSecTimeDigitized (ASCII): 00
    EXIF SubSecTimeOriginal (ASCII): 00
    EXIF SubjectArea (Short): [1023, 767, 614, 614]
    EXIF WhiteBalance (Short): Auto
    ...
    Image DateTime (ASCII): 2012:07:24 17:56:12
    Image ExifOffset (Long): 2278
    Image GPSInfo (Long): 4766
    Image Make (ASCII): Apple
    Image Model (ASCII): iPhone 3GS
    Image Orientation (Short): Horizontal (normal)
    Image Padding (Undefined): []
    Image Software (ASCII): Microsoft Windows Photo Viewer 6.1.7600.16385
    Image XPKeywords (Byte): [50, 0, 48, 0, 49, 0, 50, 0, 48, 0, 55, 0, 50, 0, 52, 0, 0, 0]
    Image YCbCrPositioning (Short): Centered

     
  • Devon Crouse

    Devon Crouse - 2012-09-24

    I think I found the problem.

    main.encoding in utils.udate is None, and it gets stuck on lines 229 "format.encode(main.encoding)" and 230 "return udate.decode(main.encoding)"

    If I just remove the encode/decodes, the method returns and EXIF works fine, but I'm assuming that could break other functionality. I'm not much of a Python person, so I'll let you be the judge of the right fix.

     

Log in to post a comment.