Lossless JPEG cropping doesn't change date/time stamp

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

User avatar
XnTriq
Moderator & Librarian
Posts: 6501
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Lossless JPEG cropping doesn't change date/time stamp

Post by XnTriq »

XnView v1.93.6 / Windows 2000:
  • Tools » Options...
    • General » File Operations
      • [ ] Keep date/time for saving
      Browser » Misc. » Rotation
      • [ ] Keep original date/time attributes
User avatar
xnview
Author of XnView
Posts: 45803
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Lossless JPEG cropping doesn't change date/time stamp

Post by xnview »

Right
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6501
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

Fixed in v1.94 RC1 :)
User avatar
XnTriq
Moderator & Librarian
Posts: 6501
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

  1. Download dc0a73e8e6.jpg (as provided by Karl02) to a temporary folder near you.
  2. Start XnView and navigate to that folder.
  3. Go to Tools » Options...:
    • [ ] Keep date/time for saving (General » File Operations)
      [ ] Keep original date/time attributes (Browser » Misc. » Rotation)
      [x] Use Embedded thumbnail (Browser » Thumbnails » Appearance)
  4. Select the thumbnail of dc0a73e8e6.jpg and go to Tools » JPEG Lossless transformations » Flip Vertical:
    • :bug: The image and its embedded EXIF thumbnail are updated, but the date/time stamp stays the same.
  5. Open dc0a73e8e6.jpg and go to Edit » Set Selection size » 8x6.
  6. Then go to Tools » JPEG Lossless transformations » Crop.
  7. Back in Browser mode, you'll notice that the date/time stamp has been updated, but not the embedded EXIF thumbnail.
  8. Select the thumbnail and go to Edit » Metadata » Recreate EXIF thumbnail.
    • :bug: If you try to open dc0a73e8e6.jpg again, you'll notice that it is kaput.
User avatar
xnview
Author of XnView
Posts: 45803
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

XnTriq wrote:
  1. Download dc0a73e8e6.jpg (as provided by Karl02) to a temporary folder near you.
The link doesn't work :-( Seems to be a severe bug!
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6501
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

xnview wrote:The link doesn't work :-(
I've uploaded the image to a different host:
  • Image
dc0a73e8e6.jpg@freeimagehosting.net = xf3sqo.jpg@tinypic.com
User avatar
XnTriq
Moderator & Librarian
Posts: 6501
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

The results of my tests with v1.94.1:
  • Browser mode: Tools » JPEG Lossless transformations
    • Image Rotate 90° left
      Image Rotate 90° right
      Image Rotate 180°
      Image Rotate based on EXIF value
      Image Flip Vertical
      Image Flip Horizontal
    View mode: Tools » JPEG Lossless transformations
    • Image Rotate 90° left
      Image Rotate 90° right
      Image Rotate 180°
      Image Rotate based on EXIF value
      Image Flip Vertical
      Image Flip Horizontal
      Image Crop
Both Keep date/time for saving and Keep original date/time attributes were deactivated.
  • Image User settings are respected = Date/time stamp is updated
    Image User settings are not respected = Date/time stamp is not updated
Another related bug in v1.93.6 has been fixed in v1.94: Running the Clean Metadata command (Browser Mode: Edit » Metadata » Clean...) on a JPEG image resulted in the file having an invalid data/time stamp (01.01.1601 01:00).