Results 1 to 2 of 2

Thread: v4.23: Obscure Error Msg JPEG Lossless image Crop

  1. #1
    IV Newbie
    Join Date
    Feb 2009
    IrfanView 4.23
    Win Vista Home Premium

    Default v4.23: Obscure Error Msg JPEG Lossless image Crop

    JPEG Lossless Image Crop

    Obscure / uninformative error message
    * option Properties/Settings for JPG/PCD/GIF
    is set to "AutoRotate images according to EXIF"
    * attempt to use the JPG Lossless Crop plugin
    * image has been auto-rotated

    produces error message
    "JPG Crop Error -1"

    because the crop window is based on the rotated image

    Since there is a JPG Lossless Rotation plugin,
    the software should automatically handle this situation, by
    first doing a Lossless Rotation
    then doing the Lossless crop.

    But if it can't, at least provide an informative error
    message that tells users what is the problem

    Overall, IRFANVIEW is a GREAT program, very helpful!

    Thank you

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


    Yes, what you report is correct and some action should be taken to prevent users experiencing this problem. I do not like your suggested solution though. It should not be necessary to force a user to perform a lossless rotation just to be able to use lossless crop.

    There is more than one issue here. First is an unfortunate but unavoidable result of having an Auto-rotate feature. If the image has been rotated upright by Auto-rotate, then the picture you see is not as it is stored in the file. Lossless operations are performed directly on the file contents without regard to how it is being shown on screen. That already catches out many using the lossless rotate feature. They request a 90 deg rotation and are taken aback when the displayed image either rotates 180 deg or does not change at all. That needs to be addressed at the very least by a warning, if lossless operations are selected, that Auto-rotate is On and may cause unexpected results.

    I doubt that a warning is enough for lossless crop though. There is a further issue in that the selection box coordinates are (apparently) held internally relative to the window, not relative to the image itself. What you see displayed are calculated coordinates dependent on the displayed zoom and scroll position of the image within the window. One consequence is what you have discovered, that the figures passed to Lossless crop can be complete nonsense, but again there are other consequences that affect other users who have posted on this forum. MItaly reports that he does use true image coordinates in the IrfanPaint plugin, and if Irfan could be persuaded to do the same in the core program then I suspect it would prove easier to pass correct coordinates to Lossless crop when Auto rotate is On.

    One "solution" is to gray out the Lossless features in the menu when Auto-rotate is On. I would not vote for that. IMHO these issues badly need to be addressed and solved once and for all.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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