View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2285 Location: $TERM
|
Posted: Thu Dec 12, 2024 10:30 am Post subject: [solved]avif read support not present in imagemagick |
|
|
Hi.
I've build imagemagick with heif support. This results in imagemagick correctly ENCODING avif image, but when it comes to reading --
Code: | convert: no decode delegate for this image format `AVIF' @ error/constitute.c/ReadImage/746. |
imagemagick was built with the following --
bzip2 corefonts cxx fftw fontconfig hdri heif jbig jpeg jpeg2k jpegxl lcms opencl openmp pango png postscript raw svg tiff truetype webp xml zlib -X -djvu -fpx -graphviz -hardened -lqr -lzma -openexr -perl -q8 -q32 -static-libs -test -wmf -zip
Version is 7.1.1.38-r2
Can you read avif? Please share the output of --
Code: | convert -list format | grep AVIF |
And please share the use flags and version of imagemagick. _________________ My blog
Last edited by dE_logics on Fri Dec 13, 2024 5:49 am; edited 1 time in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22810
|
Posted: Thu Dec 12, 2024 2:12 pm Post subject: |
|
|
Code: | # emerge -pv imagemagick
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.78 s (backtrack: 0/20).
[ebuild R ] media-gfx/imagemagick-7.1.1.38-r2:0/7.1.1-18::gentoo USE="X bzip2 corefonts cxx fontconfig graphviz hardened heif jpeg openmp pango png raw svg tiff truetype webp xml zlib -djvu -fftw -fpx -hdri -jbig -jpeg2k -jpegxl -lcms -lqr -lzma -opencl -openexr -perl -postscript -q8 -q32 -static-libs -test -wmf -zip" 0 KiB |
Code: | $ convert -list format | grep AVIF
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
AVIF HEIC rw+ AV1 Image File Format (1.15.2)
| I don't have an image of the right type to test whether I can actually render it. However, creating and then rendering one seems to work: Code: | $ magick rose: test.avif
$ file test.avif
test.avif: ISO Media, AVIF Image
$ display test.avif
| That last command displays a window with what looks like the standard ImageMagick rose. display rose: shows a seemingly equivalent window.
Per diff -u, our differences are: Code: | --- dE_logics
+++ Hu
@@ -1,29 +1,29 @@
--X
+X
bzip2
corefonts
cxx
-djvu
-fftw
+-fftw
fontconfig
-fpx
--graphviz
--hardened
-hdri
+graphviz
+hardened
+-hdri
heif
-jbig
+-jbig
jpeg
-jpeg2k
-jpegxl
-lcms
+-jpeg2k
+-jpegxl
+-lcms
-lqr
-lzma
-opencl
+-opencl
-openexr
openmp
pango
-perl
png
-postscript
+-postscript
-q32
-q8
raw
|
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6172 Location: Dallas area
|
Posted: Thu Dec 12, 2024 3:03 pm Post subject: |
|
|
Probably the hdri use flag
Code: | convert -list format|head -20
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"
Format Module Mode Description
-------------------------------------------------------------------------------
3FR DNG r-- Hasselblad CFV/H3D39II Raw Format
3G2 VIDEO r-- Media Container
3GP VIDEO r-- Media Container
AAI* AAI rw+ AAI Dune image
AI PDF rw- Adobe Illustrator CS2
APNG VIDEO rw+ Animated Portable Network Graphics
ART* ART rw- PFS: 1st Publisher Clip Art
ARW DNG r-- Sony Alpha Raw Format
ASHLAR* ASHLAR -w+ Image sequence laid out in continuous irregular courses
AVI VIDEO r-- Microsoft Audio/Visual Interleaved
AVIF HEIC rw+ AV1 Image File Format (1.15.2) |
Code: | [ebuild R ] media-gfx/imagemagick-7.1.1.38-r2:0/7.1.1-18::local USE="bzip2 corefonts cxx hdri heif jpeg lcms openmp pango perl png svg tiff truetype webp xml zlib -X -djvu -fftw -fontconfig -fpx -graphviz -hardened -jbig -jpeg2k -jpegxl -lqr -lzma -opencl -openexr -postscript -q32 -q8 -raw -static-libs -test -wmf -zip" 0 KiB |
_________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2285 Location: $TERM
|
Posted: Fri Dec 13, 2024 4:21 am Post subject: |
|
|
Comparing your USE flags, there is no reason to believe that there is a USE deficiency. _________________ My blog |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2285 Location: $TERM
|
Posted: Fri Dec 13, 2024 5:49 am Post subject: |
|
|
Culprit was media-libs/libheif[aom]. It requires aom. _________________ My blog |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2880
|
Posted: Fri Dec 13, 2024 6:55 am Post subject: |
|
|
dE_logics wrote: | Culprit was media-libs/libheif[aom]. It requires aom. | Are you using USE="-*"? That USE should be enabled by default unless you went out of your way to turn it off. |
|
Back to top |
|
|
|