XnView: MP 1.0 64-bit (Apr 28 2022)
OS: Windows 10 64-bit
Effect: if source file can be read, but new file cannot be created, original is deleted anyway.
To reproduce:
- Open "Batch convert" (Ctrl+U).
- Output to "Source folder".
- Enable "Delete original".
- Input:
- (a) "Add folder" that contains files with full path longer than 255+ characters.
For example, 266 characters:Note: only "Add folder" reproduces the bug.Code: Select all
D:\12345678901234567890123456789012345678901234567890\12345678901234567890123456789012345678901234567890\12345678901234567890123456789012345678901234567890\12345678901234567890123456789012345678901234567890\12345678901234567890123456789012345678901234567890\test.png
When I drag&drop to batch input, or drag&drop to viewer and Ctrl+U from there, short 8.3 names are used instead.Code: Select all
D:\123456~1\123456~1\123456~1\123456~1\123456~1\test_1.png : saved
- (b) Add input files with unicode filename and use output format with plugin.
For example, output to QOI with https://github.com/pfusik/qoi-ci
I reported this in https://github.com/pfusik/qoi-ci/issues/8 and was told that it is limitation of XnView plugins, that get question mark characters instead of unicode in paths.
- (a) "Add folder" that contains files with full path longer than 255+ characters.
- Run batch convert.
Example status report:
Code: Select all
D:\★.png : loading
D:\★.png 456x456x1 : loaded
D:\★.qoi : not a picture
Input files: 1
Extracted pages: 1
New files: 1
Expected behaviour: new valid file is created, old file is deleted.
Or: no new valid file, old file is kept.
Whatever the underlying causes (which are separate problems), original file should be kept if creation failed.
I personally understand that "Delete original" is dangerous, and only use it to save operational disk space when I have original files in a backup, and I check my results and file counts to match that. Otherwise I keep original files and delete them manually after checking results, if ever.