Page 1 of 1

HEIC encoding buggy

Posted: Sun Sep 25, 2022 11:07 am
by nji9
First of all the heic format seems not capable to true lossless encoding.
I tried to find out, but not being a prof on that I wasn't successful.
However my "reference" for graphic is GIMP, and in its export dialog
for heic it says "(nearly) lossless".
(BTW This expression seems rather sensless to me,
as the saying "a miss is as good as a mile" says,
if just one bit is different than you shouldn't use the word lossless at all.
"Nearly lossless" makes no sense).
Maybe you check the format's properties?
And then change to "nearly lossless" too, or better leave it completely.
But that's only the minor thing.

The big bug with xnviewmp's heic encoding is that the encoding quality
doesn't match the option slider's setting.
If you use the max value (100 (= "lossless") and compare that to the
heic file that GIMP produces with its max value,
you see that xnview's file size is much smaller than GIMP's
and that the resulting quality is very poor compared to GIMP's.
This means that your encoder is very poor even with its max settings,
or that there is a bug in using the encoder.
If you can't help that, the best thing would be to do something
like a "half slider" (max value = "50"), and tag 50 as "still not good"
or something like that.
To my opinion.

I attach the two arithmetical differences from the original 24bit image
to a heic file encoded by XnViewMP and a heic file encoded by GIMP.
If you split the files to HSV channels you see the BIG difference.

Re: HEIC encoding buggy

Posted: Mon Sep 26, 2022 2:23 pm
by xnview
could you send me original and output?

Re: HEIC encoding buggy

Posted: Mon Sep 26, 2022 2:27 pm
by nji9
Sorry, attchment size limit doesn't allow.
It was just to demonstrate anyway.
Why don't you use an arbitrary file by yourself?

Re: HEIC encoding buggy

Posted: Mon Sep 26, 2022 2:42 pm
by xnview
you can send them by mail

Re: HEIC encoding buggy

Posted: Thu Sep 29, 2022 2:24 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: HEIC encoding buggy

Posted: Thu Sep 29, 2022 6:53 pm
by nji9
Glad I could help.

However I'm surprised by the classification of it as "minor" bug.
(Was it a "minor" effort for you to kill that bug?)

All the users that trusted on the lossless encoding of heic and jxl
viewtopic.php?p=180706#p180706
have lost their originals now, even without knowing about it.
That's severe I might think.

Re: HEIC encoding buggy

Posted: Thu Sep 29, 2022 7:14 pm
by xnview
i don't use classification...

Re: HEIC encoding buggy

Posted: Thu Sep 29, 2022 7:25 pm
by nji9

Re: HEIC encoding buggy

Posted: Thu Oct 13, 2022 2:29 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.3.1. Please check and confirm the bug fix here.