Page 1 of 1

0.96.4: Extra black lines on heic files with certain resolution

Posted: Tue Aug 04, 2020 4:52 am
by shaodan1997
XnView: MP 0.96.4 - 64 bit
OS: Windows 10 - 64bit

Effect: Unable to get the expected heic file

To reproduce:
1. Create an image with 2376*3583px resolution and save it into any format. (For example, using Microsoft Paint to create a new one with 2376*3583px resolution and save it into a.png).
2. Open a.png with XnView MP.
3. Using File-Save as to save it into a.heic. Write settings can be adjusted arbitrarily.
Actual behaviour (bug): Some extra black lines appears on a.heic.Image

Expected behaviour: No extra lines

Additional information:
1. Although without fully tested, this bug does not seem to affect images with other resolution. After some tests, the bug seems to affect any image that has odd number in horizontal resolution or vertical resolution.
2. The bug can be reproduced no matter how does the Original file created. Images created by Image processing software or scanners both affected by the bug if they are with 2376*3583px resolution.odd number resolution.
3. The bug seems caused by the HEIF Image Extension, because it can be reproduced in Microsoft Paint. I also reported the bug to Microsoft but don't get feedback yet. However, the bug can still be reproduced after installing the plugin viewtopic.php?f=82&t=36661 . Since the HEIF Image Extension can't be uninstalled, I am not sure which encoder XnView used to save image into heic after installing the plugin. If the bug actually caused by the HEIF Image Extension, is there any alternative encoders?

Re: 0.96.4: Extra black lines on heic files with certain resolution

Posted: Tue Aug 11, 2020 9:25 am
by xnview
even if you install the external plugin, XnView will use the windows store one, and it seems that the problem comes from Microsoft

Re: 0.96.4: Extra black lines on heic files with certain resolution

Posted: Thu Aug 13, 2020 4:13 pm
by shaodan1997
xnview wrote: Tue Aug 11, 2020 9:25 am even if you install the external plugin, XnView will use the windows store one, and it seems that the problem comes from Microsoft
Thank you. I just found out that HEVC does not allow for odd image dimensions when using chroma 4:2:0, libheif will extend these kind of images, but it seems that Microsoft's encodes them directly.