onlyshk / GPicView

GPicView - A Simple and Fast Image Viewer for X

Home Page:gpicview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saving after rotation not working

daniel-barrows opened this issue · comments

With GPicView 0.2.5, if I open any image, rotate it either direction, and then save it, I see a dialog box warning me about destructive editing. That's normal. If I proceed, then a new file is created named file-name.jpg.XXXXXX, where XXXXXX is a random alphanumeric string of 6 characters, and file-name.jpg is the name of the file I was attempting to edit. The original image file (file-name.jpg) is not modified.

file-name.jpg.XXXXXX looks like a JPEG at a glance in a hex editor (I see JFIF and EXIF in the header), but none of these can open it: GIMP, GPicView, mtpaint.

I suspect GPicView is getting interrupted while saving the transformation, and file-name.jpg.XXXXXX is a temp file creating during this process, which would ordinarily be deleted once the process is complete.

I uploaded an example file to http://www.filedropper.com/testimgjpg but this will expire after 30 days without being downloaded.