Page 1 of 1

1.4.3 - viewer - copy-pasting 4-8bit images is corrupted

Posted: Mon Apr 17, 2023 3:14 pm
by user0
XnViewMP 1.4.3 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Viewer
copy-pasting 4-8bit images is corrupted

To reproduce:
1. run clean portable XnViewMP

Issue A
2. open test image (4bit, 8colors, 1transparent index)
test_img_A.zip
(32.35 KiB) Downloaded 55 times
3. make any selection
4. press CTRL+C, CTRL+V
- pasted data will be corrupted (as result colors quantity increased to 16)
- image will turns into 32bit
A.png
XnView Classic also pastes black data, but if saved and reopened - there is no issue, bitness preserved, pasting only messes if selection area differs (which is understandable).

Issue B
2. open test image (8bit, 256colors)
test_img_B.zip
(149.32 KiB) Downloaded 52 times
3. make any selection
4. press CTRL+C, CTRL+V
- pasted data will be corrupted (as result colors quantity increased to 461)
- image will turns into 32bit
B.png
No such issue is XnView Classic, image preservs same bitness, pasting only messes if selection area differs (which is understandable).

Re: 1.4.3 - viewer - copy-pasting 4-8bit images is corrupted

Posted: Thu Apr 20, 2023 7:31 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce "pasted data will be corrupted"

When you paste, image is always converted to 24/32bits.

Re: 1.4.3 - viewer - copy-pasting 4-8bit images is corrupted

Posted: Wed May 31, 2023 7:41 am
by xnview
See issue for current status and some details.

(In Classic there is some issues when pasting 24bits or different colormap image, so in MP image is always converted in 24/32bits)

Re: 1.4.3 - viewer - copy-pasting 4-8bit images is corrupted

Posted: Fri Jun 16, 2023 4:14 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.5.0 beta. Please check and confirm the bug fix here.

Re: 1.4.3 - viewer - copy-pasting 4-8bit images is corrupted

Posted: Fri Jun 16, 2023 5:57 pm
by user0
fixed in 1.5.0