Windows11 (22H2), display resolution 3840x2160, dpi scale 150%
Viewer
quirks reading corrupted files (simple examples, end parts of files were deleted and part of the header in one example)
issue A
1. open test folder in Browser mode
2. double-click corrupted AVIF or WEBP
they open in new instance
issue B
1. double-click corrupted file in win file explorer
xnview opens with <empty> tab and error message ('Ignore read errors' setting has no effect)
<empty> tab remains once Error message closed AND filelist is not available (not possible to navigate to any other file in folder)
expected
show corrupted filename in Viewer tab AND allow to navigate to other files in folder
issue C
1. double-click AVIF image in win file explorer
2. scroll to the next file
viewer shows blank tab while scrolling corrupted images, no error message appears, tab shows prev filename
issue D
0. check 'Ignore read errors' in Settings>Read
1. double-click AVIF image in win file explorer
2. wait 5 seconds
files counter in Viewer status bar will filter out corrupted files, changing from 9 to 7 files
expected
show corrupted files in Viewer filelist if 'Ignore read errors' is checked
Suggestion
- check 'Ignore read errors' by default (Settings>Format>Read)
so that user can see at least part of the image
it works best with:- notify user about read error via snackbar functionality
its better to use non-modal messages and style them to appear in the bottom left corner
- notify user about read error via snackbar functionality
- improve reading routine
for the error cases, eg- WEBP
webp_corrupted_header.webp has corrupt header, but the image data is fine. FastStone and IrfanView open this file without problems.
Since this is RIFF container and the data is clearly structured, maybe try to:
- check if files is static or animation
- read single VP8/VP8L chunk or multiple such chunks inside ANMF containers for animation.
- WEBP
Related
- issues
1.5.5 - viewer - read - corrupted files (current post)
1.5.0 - browser - raw opens in new instance
- fixed -
1.8.6 - settings - read - camera raw - settings ignored (1.8.7)
- suggestions
General - notifications - add snackbar functionality
Messageboxes - notify on incorrect extension
Messageboxes - notify on mismatched X/Y DPI
Viewer - read - RAW - add open dialog
Viewer - read - Camera RAW - add command to loop sizes
Settings - read - Camera RAW - display preview while loading full size
Settings - formats - rework Saving Read Write tabs
- done -
Settings - write - PDF, TIFF - update default settings (1.8.7)
Settings - read - Camera RAW - clarify settings (1.8.7)