Results 1 to 7 of 7

Thread: JPEG Lossless Crop Fails on Automatically Rotated Images

  1. #1
    IV Newbie
    Join Date
    Sep 2008
    Posts
    2

    Unhappy JPEG Lossless Crop Fails on Automatically Rotated Images

    The JPEG lossless crop fails when applied to images that have been automatically rotated due to EXIF information. I'm assuming that it does not map the coordinates correctly to the rotated image and so tries to crop an area that does not exist and so it fails.

    Affects Irfanview 4.28 and probably 4.30 as well seeing as this is not mentioned in the changelog.

  2. #2
    Professional User Mij's Avatar
    Join Date
    Mar 2007
    Location
    Camberley, Surrey, UK
    Posts
    2,764
    Version
    IrfanView 4.51
    OS
    32-bit Win 10
    CPU Cores
    3

    Default

    This was reported some time ago here but nothing appears to have changed. As I tried to explain then it is not obvious how to solve the problem.
    My advice is to turn off the Auto-rotate feature if you plan to use lossless operations.

  3. #3
    IV Newbie
    Join Date
    Jun 2018
    Posts
    1

    Default JPG Lossless Crop Plugin

    In this version is a bug relating to JPG lossless crop plugin. You have a Jpg picture which has the EXIF orientation other than "Top left". Now if you made a selection and use the lossless crop, then it crops to a wrong selection.

    OS: Windows 10
    IrfanView 4.51 64 bit
    IrfanView plugins 4.51 64 bit

  4. #4
    Moderator Enterprise User Bhikkhu Pesala's Avatar
    Join Date
    May 2007
    Location
    East London
    Posts
    6,554
    OS
    64-bit Win 10
    CPU Cores
    1

    Default

    As advised by Mij, turn off the Auto-rotate feature if you plan to use lossless operations.

    It is not easy to fix this issue.

  5. #5
    IV Newbie
    Join Date
    Sep 2020
    Posts
    1
    OS
    64-bit Win 10
    CPU Cores
    6

    Default

    I'd like to suggest a fix.

    Upon "JPG Crop error: Internal error", if EXIF orientation data available, provide 2 buttons:

    Cancel - doing what "OK" does now.
    OK - as the error message would explain, "Losslessly auto-rotate according to EXIF orientation" so the user could reselect the crop area and retry without manually switching settings just for this one picture.

    -OR-

    Like "Always on top" toggle, add a "JPG Lossles Auto-rotate" toggle in the menu for the plugin to do it automatically to the file whenever a rotated image is loaded. I'd love that even if it would very slightly slow down loading each picture the very first time.

  6. #6

    Default

    Quote Originally Posted by Minty View Post
    I'd like to suggest a fix.

    Upon "JPG Crop error: Internal error", if EXIF orientation data available, provide 2 buttons:

    Cancel - doing what "OK" does now.
    OK - as the error message would explain, "Losslessly auto-rotate according to EXIF orientation" so the user could reselect the crop area and retry without manually switching settings just for this one picture.

    -OR-

    Like "Always on top" toggle, add a "JPG Lossles Auto-rotate" toggle in the menu for the plugin to do it automatically to the file whenever a rotated image is loaded. I'd love that even if it would very slightly slow down loading each picture the very first time.
    I agree, that would be really useful.

    Using V4.54 32 bit version on Win 10.

    I too have weird issues with lossless rotation on images where the EXIF data says the image is rotated. Even with auto-rotate turned off in Irfanview, If I have an image which has been taken 90 deg rotated clockwise, so needing a 270 deg rotation, the 270 deg rotation rotates it 180 deg. By accident I found that rotating it twice by 180 deg brings the image correct, ie it applies a 180 deg then a 90 deg cw rotation ???

  7. #7

    Default

    I'm using the Lossless JPEG transformation (Shift+J). I let my JPEGs automatically rotate. The files are rearranged accordingly and the rotation tags are reset. I don't like the rotation tags, I prefer the actual image data being rotated. So after the transformation, there shouldn't be any more problems with rotation.
    IrfanView 4.56 64bit, Windows 10 20H2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •