Skip to content

Regenerate thumbnails on save

Roberto Vidal requested to merge 0rvidal/eog:thumbnails into master

I noticed that thumbnails can get out of sync if you:

  • Rotate once an image through Ctrl+R (both image and thumbnail are rotated 90 deg)
  • Save through Ctrl+S (same state as before)
  • Rotate again (the image is rotated 180 deg, the thumbnail is rotated 270deg (!?))

After this patch, the thumbnail is regenerated and reloaded. It does have a quirky side-effect: the new thumbnail generated by the OS does not equal the original thumbnail after a rotation, so there's a slight displacement after saving (see video)

Screencast_from_03-31-2023_11_11_06_PM

Testing image

avatar

Edited by Roberto Vidal

Merge request reports