Multiple HEIC bugs

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
4h4h270
Posts: 1
Joined: Mon Mar 29, 2021 12:17 pm

Multiple HEIC bugs

Post 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
User avatar
masterjp
Posts: 424
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: Multiple HEIC bugs

Post 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.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XN-View 2.51.5 | XnViewMP 1.6.5 | XnConvert 1.100.1 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Multiple HEIC bugs

Post 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?
Pierre.
Cheeling
Posts: 5
Joined: Fri Jan 01, 2021 6:42 am

Re: Multiple HEIC bugs

Post 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.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Multiple HEIC bugs

Post 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?
Pierre.
Cheeling
Posts: 5
Joined: Fri Jan 01, 2021 6:42 am

Re: Multiple HEIC bugs

Post 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
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Multiple HEIC bugs

Post 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
Pierre.
Cheeling
Posts: 5
Joined: Fri Jan 01, 2021 6:42 am

Re: Multiple HEIC bugs

Post 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.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Multiple HEIC bugs

Post by xnview »

Sorry, but the problem is with MS HEIC plugin, only HEIC loading use XnView plugin
Pierre.
Cheeling
Posts: 5
Joined: Fri Jan 01, 2021 6:42 am

Re: Multiple HEIC bugs

Post 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?
Post Reply