Announcement

Collapse
No announcement yet.

JPG Lossless Rotation via EXIF Orientation no workie

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    JPG Lossless Rotation via EXIF Orientation no workie

    Have images coming in from digital cameras which need to be rotated. They have EXIF Orientation capability, and when executing the lossless rotation via Auto Rotate, nothing happens, except for the fact that the orientation flag is set to Top Left.

    Also (don't know if this is related or not - but I suspect it is) when specifying something other than Auto Rotate, it will often rotate the image 90 degrees more than what was desired, necessitating having to rotate the image back by 90 degrees. However, if Auto Rotate was initially performed (resulting in no apparent action), and then rotating it via one of the other options other than auto, it does work the "1st" time.


    BEFORE ROTATION:

    Make - Panasonic
    Model - DMC-FX55
    Orientation - Left bottom
    XResolution - 72
    YResolution - 72
    ResolutionUnit - Inch
    Software - Ver.1.0
    DateTime - 2007:12:25 20:18:54
    YCbCrPositioning - Co-Sited
    ExifOffset - 496
    ExposureTime - 1/30 seconds
    FNumber - 2.80
    ExposureProgram - Normal program
    ISOSpeedRatings - 100
    ExifVersion - 0221
    DateTimeOriginal - 2007:12:25 20:18:54
    DateTimeDigitized - 2007:12:25 20:18:54
    ComponentsConfiguration - YCbCr
    CompressedBitsPerPixel - 4 (bits/pixel)
    ExposureBiasValue - 0.00
    MaxApertureValue - F 2.83
    MeteringMode - Multi-segment
    LightSource - Flash
    Flash - Flash fired, auto mode, red-eye reduction mode
    FocalLength - 4.60 mm
    FlashPixVersion - 0100
    ColorSpace - sRGB
    ExifImageWidth - 2448
    ExifImageHeight - 3264
    InteroperabilityOffset - 7828
    SensingMethod - One-chip color area sensor
    FileSource - DSC - Digital still camera
    SceneType - A directly photographed image
    CustomRendered - Normal process
    ExposureMode - Auto
    White Balance - Auto
    DigitalZoomRatio - 0.00 x
    FocalLengthIn35mmFilm - 28 mm
    SceneCaptureType - Portrait
    GainControl - None
    Contrast - Normal
    Saturation - Normal
    Sharpness - Normal

    Maker Note (Vendor): -

    Thumbnail: -
    Compression - 6 (JPG)
    Orientation - Left bottom
    XResolution - 72
    YResolution - 72
    ResolutionUnit - Inch
    JpegIFOffset - 8084
    JpegIFByteCount - 7237
    YCbCrPositioning - Co-Sited


    AFTER THE ROTATION (with no visible effects):

    Make - Panasonic
    Model - DMC-FX55
    Orientation - Top left
    XResolution - 72
    YResolution - 72
    ResolutionUnit - Inch
    Software - Ver.1.0
    DateTime - 2007:12:25 20:18:54
    YCbCrPositioning - Co-Sited
    ExifOffset - 496
    ExposureTime - 1/30 seconds
    FNumber - 2.80
    ExposureProgram - Normal program
    ISOSpeedRatings - 100
    ExifVersion - 0221
    DateTimeOriginal - 2007:12:25 20:18:54
    DateTimeDigitized - 2007:12:25 20:18:54
    ComponentsConfiguration - YCbCr
    CompressedBitsPerPixel - 4 (bits/pixel)
    ExposureBiasValue - 0.00
    MaxApertureValue - F 2.83
    MeteringMode - Multi-segment
    LightSource - Flash
    Flash - Flash fired, auto mode, red-eye reduction mode
    FocalLength - 4.60 mm
    FlashPixVersion - 0100
    ColorSpace - sRGB
    ExifImageWidth - 3264
    ExifImageHeight - 2448
    InteroperabilityOffset - 7828
    SensingMethod - One-chip color area sensor
    FileSource - DSC - Digital still camera
    SceneType - A directly photographed image
    CustomRendered - Normal process
    ExposureMode - Auto
    White Balance - Auto
    DigitalZoomRatio - 0.00 x
    FocalLengthIn35mmFilm - 28 mm
    SceneCaptureType - Portrait
    GainControl - None
    Contrast - Normal
    Saturation - Normal
    Sharpness - Normal

    Maker Note (Vendor): -

    Thumbnail: -
    Compression - 6 (JPG)
    Orientation - Left bottom
    XResolution - 72
    YResolution - 72
    ResolutionUnit - Inch
    JpegIFOffset - 8084
    JpegIFByteCount - 7237
    YCbCrPositioning - Co-Sited

    #2
    same symptoms in lossless rotate

    I am using Irfanview 4.10 on XP Pro and have the same problems with Lossless rotation, 90 degrees actually does a 180 and auto according to EXIF does not rotate but appears to change the designator.

    after correcting with 270:

    Make - NIKON CORPORATION
    Model - NIKON D80
    Orientation - Top left
    XResolution - 300
    YResolution - 300
    ResolutionUnit - Inch
    Software - Ver.1.01
    DateTime - 2008:03:09 13:20:05
    YCbCrPositioning - Co-Sited
    ExifOffset - 216
    ExposureTime - 1/60 seconds
    FNumber - 5.00
    ExposureProgram - Aperture priority
    ISOSpeedRatings - 800
    ExifVersion - 0221
    DateTimeOriginal - 2008:03:09 13:20:05
    DateTimeDigitized - 2008:03:09 13:20:05
    ComponentsConfiguration - YCbCr
    CompressedBitsPerPixel - 4 (bits/pixel)
    ExposureBiasValue - 0.00
    MaxApertureValue - F 4.92
    MeteringMode - Multi-segment
    LightSource - Flash
    Flash - Flash fired, auto mode, return light detected
    FocalLength - 52.00 mm
    UserComment - @ROBERT PAVEL
    SubsecTime - 30
    SubsecTimeOriginal - 30
    SubsecTimeDigitized - 30
    FlashPixVersion - 0100
    ColorSpace - sRGB
    ExifImageWidth - 2592
    ExifImageHeight - 3872
    InteroperabilityOffset - 26202
    SensingMethod - One-chip color area sensor
    FileSource - Other
    SceneType - Other
    CustomRendered - Normal process
    ExposureMode - Auto
    White Balance - Manual
    DigitalZoomRatio - 1 x
    FocalLengthIn35mmFilm - 78 mm
    SceneCaptureType - Standard
    GainControl - Low gain up
    Contrast - Normal
    Saturation - High
    Sharpness - Hard
    SubjectDistanceRange - Unknown

    Maker Note (Vendor): -
    Data version - 0210 (808595760)
    ISO Setting - 800
    Color Mode - COLOR
    Image Quality - FINE
    White Balance - FLASH
    Image Sharpening - MED.H
    Focus Mode - AF-C
    Flash Setting - NORMAL
    Flash Mode - Optional,TTL
    White Balance Adjustment - -65536
    White Balance RB - 710
    Exposure Adjustment - -285144064
    Thumbnail IFD offset - 2738
    Flash Compensation - -251591168
    ISO 2 - 800
    Tone Compensation - NORMAL
    Lens type - AF-D G
    Lens - 802
    Flash Used - External
    AF Focus Position - 16777216
    Bracketing - 65536
    Color Mode - MODE3a
    Light Type - SPEEDLIGHT
    Hue Adjustment - 0
    Noise Reduction - OFF
    Total pictures - 12572
    Optimization - VIVID

    Thumbnail: -
    Compression - 6 (JPG)
    XResolution - 300
    YResolution - 300
    ResolutionUnit - Inch
    JpegIFOffset - 26340
    JpegIFByteCount - 8961
    YCbCrPositioning - Co-Sited

    Comment


      #3
      Slightly puzzling. It works correctly for me.
      Kburton. The only relevant EXIF tag is Orientation. You started with that set as Left Bottom. Irfan View should have auto-rotated your image 90 degrees CCW which should then have been showing the image upright. If you looked at the information (press I then E) the tag should still show Left Bottom.
      However when you Save the image you have the option whether to check or uncheck "Reset EXIF orientation tag" in the JPEG save options. If this option is checked then the tag will be saved as Top Left and the image will ever after appear the same way up whether auto-rotate is on or off.
      If you have saved at the wrong angle then you will have to rotate it with the manual rotate features until it appears upright and then re-save. AFAIK you cannot set the tag back to any value other than Top Left using IV.
      Rpsf - you do not say what the orientation tag was originally. Many cameras do not have orientation sensors and just set the EXIF tag to Top Left whichever way up you took the picture. IV's auto-rotate function will not work if that is the case.
      Last edited by Mij; 20.03.2008, 04:59 PM. Reason: Incorrect information about saving EXIF tag

      Comment


        #4
        Sorry, I have just realized what may be going on. Are you using the JPEG lossless rotations with auto-rotate option selected?
        JPEG lossless operates on the original image file not on the displayed image. After the rotation it automatically re-saves the file and displays it. The auto-rotate will then rotate the image again according to the EXIF tag.
        You can get in a similar muddle if you mix JPEG lossless rotations with normal Rotate Right or Rotate Left.
        JPEG lossless operations are fine in Thumbnails or batch operations. Personally, I would never use them in the main window.

        Oh my! It's even more of a muddle than I thought because JPEG lossless rotation seems to change the EXIF tag to "Top left" even if you have "Reset EXIF orientation" unchecked in the JPEG save options. I think that should be classed as a bug.
        Last edited by Mij; 20.03.2008, 05:15 PM. Reason: Further comment added

        Comment

        Working...
        X