Page 1 of 1

Multiple HEIC bugs

Posted: Mon Mar 29, 2021 12:50 pm
by 4h4h270
At some resolution, you will got 0 byte
try this picture, u will got 0 byte :P

https://i.imgur.com/C8a9uYC.png

convert to heic will change the color.

here's the comparison:

https://i.imgur.com/A4XtdfE.png

try it yourself, green and red color will be changed.

https://i.imgur.com/3QBdubX.png

and some resolution u will got strange lines:

https://i.imgur.com/kWxzBuo.png

here's the original file:

https://i.imgur.com/46shuMJ.png

Re: Multiple HEIC bugs

Posted: Wed Mar 31, 2021 5:22 pm
by masterjp
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.

See the post to XnViewMP 0.94: viewtopic.php?f=62&t=39677&p=159426&hilit=heic#p159426

Your color errors (green is not the same green or red is not the same red) should be problems of the HEIC plugin.

Re: Multiple HEIC bugs

Posted: Wed Apr 07, 2021 12:44 pm
by xnview
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 :P
Do you use the HEIC Plugin from Microsoft App Store or the XnView's plugin?

Re: Multiple HEIC bugs

Posted: Sun Apr 11, 2021 9:14 am
by Cheeling
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.

Re: Multiple HEIC bugs

Posted: Mon Apr 12, 2021 8:43 am
by xnview
Cheeling wrote: Sun Apr 11, 2021 9:14 am
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.
Could you send me a sample file?

Re: Multiple HEIC bugs

Posted: Thu Apr 15, 2021 7:40 am
by Cheeling
xnview wrote: Mon Apr 12, 2021 8:43 am
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 :P

https://i.imgur.com/C8a9uYC.png
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.png
photo.png

Re: Multiple HEIC bugs

Posted: Thu Apr 15, 2021 9:32 am
by xnview
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.
i don't see black lines

Re: Multiple HEIC bugs

Posted: Thu Apr 15, 2021 10:20 am
by Cheeling
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

black lines sample: https://i.imgur.com/46shuMJ.png
0 byte sample: https://i.imgur.com/C8a9uYC.png

my results are as same as No.1, 4 image from 4h4h270's post.

Re: Multiple HEIC bugs

Posted: Thu Apr 15, 2021 2:15 pm
by xnview
Sorry, but the problem is with MS HEIC plugin, only HEIC loading use XnView plugin

Re: Multiple HEIC bugs

Posted: Fri Apr 16, 2021 3:47 am
by Cheeling
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?