Regenerate thumbnails on save

Open Roberto Vidal requested to merge _rvidal/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)


Testing image


Edited by Roberto Vidal

Merge request reports