hellosiyan / Viewnior

Elegant Image Viewer
https://siyanpanayotov.com/project/viewnior/
GNU General Public License v3.0
319 stars 55 forks source link

show good part of truncated image file like feh does #106

Closed Lew-Rockwell-Fan closed 3 years ago

Lew-Rockwell-Fan commented 3 years ago

Instead of just an unhelpful error message in the client area and "viewnior" in the title bar, it would be nice if the part of a truncated image file that did have image data was shown and the title bar behaved as usual. Feh does this. Example file: defective_truncated-1st_half

hellosiyan commented 3 years ago

Hi @Lew-Rockwell-Fan! Thank you for raising this. Feh and Viewnior use different libraries for loading images (imlib and gdk-pixbuf, though might be wrong about Feh), which work differently and are able to handle and recover from errors in different capacities. I am not interested in implementing the behavior you describe, as fixing a corrupt file would require specialized software anyway. Since Viewnior alerts when a file cannot be read/decoded/displayed, you can always resort to Feh or other image viewers and manipulation programs.