Hi 4h4h270, I tested HEIC file saving, too.
I recognized the same problems in the past.
XnViewMP use the Windows HEIC Plugin from Microsoft App Store for writing HEIC files.
If the picture width or height size is odd, you will see the multiple lines in the saved heic file.
xnview wrote: Wed Apr 07, 2021 12:44 pm
Do you use the HEIC Plugin from Microsoft App Store or the XnView's plugin?
I have the same problem. I tested with 0.94.3 using MS HEIC plugin, and 0.98.2 using XnView's plugin. Both have problems of 0 byte and strange black lines. But only 0.98.2 has color errors.
And when I using MS Photo app, no color errors exists. So maybe the decoder of Xnview's heif plugin has bugs, just as @masterjp said.
xnview wrote: Wed Apr 07, 2021 12:44 pm
Do you use the HEIC Plugin from Microsoft App Store or the XnView's plugin?
I have the same problem. I tested with 0.94.3 using MS HEIC plugin, and 0.98.2 using XnView's plugin. Both have problems of 0 byte and strange black lines. But only 0.98.2 has color errors.
And when I using MS Photo app, no color errors exists. So maybe the decoder of Xnview's heif plugin has bugs, just as @masterjp said.
Cheeling wrote: Sun Apr 11, 2021 9:14 am
I have the same problem. I tested with 0.94.3 using MS HEIC plugin, and 0.98.2 using XnView's plugin. Both have problems of 0 byte and strange black lines. But only 0.98.2 has color errors.
And when I using MS Photo app, no color errors exists. So maybe the decoder of Xnview's heif plugin has bugs, just as @masterjp said.
Could you send me a sample file?
Sample files are No.1, 3, 5 image from 4h4h270's post.
4h4h270 wrote: Mon Mar 29, 2021 12:50 pm
At some resolution, you will got 0 byte
try this picture, u will got 0 byte
But color errors are not limited to that sample, almost all images I tested can reproduce. Belows are comparision about opening Xnview encoded heic and png, in Xnview and MS Photo App.
Cheeling wrote: Thu Apr 15, 2021 7:40 am
But color errors are not limited to that sample, almost all images I tested can reproduce. Belows are comparision about opening Xnview encoded heic and png, in Xnview and MS Photo App.
xnview wrote: Thu Apr 15, 2021 9:32 am
i don't see black lines
I only posted results about color errors. For black lines and 0 byte error, you need to use other samples. For convenience I'll post 4h4h270's links below
xnview wrote: Thu Apr 15, 2021 2:15 pm
Sorry, but the problem is with MS HEIC plugin, only HEIC loading use XnView plugin
I see. Thanks for your reply. But color errors seems to be a bug of plugin. As I posted before
Cheeling wrote: Thu Apr 15, 2021 7:40 am
Sample files are No.1, 3, 5 image from 4h4h270's post.
But color errors are not limited to that sample, almost all images I tested can reproduce. Belows are comparision about opening Xnview encoded heic and png, in Xnview and MS Photo App.
Saving png as heic, then open them in Xnview 0.98.2 and MS Photo. In Xnview these 2 images are different, but in Photo they look the same. If I use Xnview 0.94, they also look the same
update: I upload these 2 images to my iPhone and they also look different. I use color picker on iphone to get RGB value. It turns out to be the same as Xnview for same image format, and different for same region of 2 images. So it may be another bug of MS HEIC plugin?