dlemstra / Magick.NET

The .NET library for ImageMagick
Apache License 2.0
3.47k stars 415 forks source link

AVIF Support #741

Closed danpetitt closed 3 years ago

danpetitt commented 4 years ago

Hi Dirk; thanks again for a great library. Do you have any plans on supporting the new AVIF format?

dlemstra commented 4 years ago

Support for reading was AVIF introduced in this version: https://github.com/dlemstra/Magick.NET/releases/tag/7.20.0.0. And I just updated the release notes to include the note about write support for this version: https://github.com/dlemstra/Magick.NET/releases/tag/7.22.0.0.

d2phap commented 4 years ago

Thanks @dlemstra for AVIF support. However, I tested with the samples in https://github.com/link-u/avif-sample-images, there are some files that Magick.NET cannot open:

image

https://github.com/link-u/avif-sample-images/blob/master/plum-blossom-small.profile0.10bpc.yuv420.alpha-full.avif
https://github.com/link-u/avif-sample-images/blob/master/plum-blossom-small.profile0.10bpc.yuv420.alpha-full.monochrome.avif
https://github.com/link-u/avif-sample-images/blob/master/plum-blossom-small.profile0.10bpc.yuv420.alpha-limited.avif
...
dlemstra commented 4 years ago

You will need to report this issue to the developers of https://github.com/strukturag/libheif. Magick.NET uses that library to read the AVIF images.

agravity-philipp commented 2 years ago

@d2phap have you reported this isse to the developers of https://github.com/strukturag/libheif? I could not find the ticket and I have the same issue.

d2phap commented 2 years ago

@agravity-philipp oh I think I forgot.

agravity-philipp commented 2 years ago

@d2phap I did that for you: https://github.com/strukturag/libheif/issues/697

agravity-philipp commented 1 year ago

Hi @dlemstra ! Please note, that this issue was fixed: https://github.com/strukturag/libheif/issues/697#issuecomment-1314288074

dlemstra commented 1 year ago

We will need to wait for a release before we can have this fix in the Magick.NET library

agravity-philipp commented 1 year ago

Hi @dlemstra ! This was already released in version v1.14.0 or at least it is in the current version 1.14.2. Is it already included in 12.2.2 ?

dlemstra commented 1 year ago

In the release overview (https://github.com/dlemstra/Magick.NET/releases) I also have a note of the dependencies that are updated. And the file https://github.com/dlemstra/Magick.NET/blob/main/src/Magick.Native/libraries.md contains the most recent versions of the libraries (note: it might be possible that this is not yet released).

But to answer your question the update to 1.14.0 was done in version 12.2.2.

Rombersoft commented 9 months ago

I've just converted PNG with size 235Kb to AVIF with 10Kb using the 13.5.0 library version and the result is very very bad picture quality. I compared the result with the native Linux application ImageMagick (convert) and the result was 21Kb, and the picture quality is far better.

dlemstra commented 9 months ago

Please don't hijack issues to ask questions. Please use a new discussion instead.