Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[solved]avif read support not present in imagemagick

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

[solved]avif read support not present in imagemagick

  • Quote

Post by dE_logics » Thu Dec 12, 2024 10:30 am

Hi.

I've build imagemagick with heif support. This results in imagemagick correctly ENCODING avif image, but when it comes to reading --

Code: Select all

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: Select all

convert -list format | grep AVIF
And please share the use flags and version of imagemagick.
Last edited by dE_logics on Fri Dec 13, 2024 5:49 am, edited 1 time in total.
My blog
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Dec 12, 2024 2:12 pm

Code: Select all

# 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: Select all

$ 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: Select all

$ 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: Select all

--- 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
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Thu Dec 12, 2024 3:03 pm

Probably the hdri use flag

Code: Select all

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: Select all

[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 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Fri Dec 13, 2024 4:21 am

Comparing your USE flags, there is no reason to believe that there is a USE deficiency.
My blog
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Fri Dec 13, 2024 5:49 am

Culprit was media-libs/libheif[aom]. It requires aom.
My blog
Top
Ionen
Developer
Developer
User avatar
Posts: 3009
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Fri Dec 13, 2024 6:55 am

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.
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Fri Dec 13, 2024 12:37 pm

Ionen wrote:
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.
Yes. libaom was supposed to be deprecated for media-libs/dav1d and svt-av1. But it seems like an active project.
My blog
Top
Ionen
Developer
Developer
User avatar
Posts: 3009
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Fri Dec 13, 2024 2:16 pm

dE_logics wrote:Yes. libaom was supposed to be deprecated for media-libs/dav1d and svt-av1. But it seems like an active project.
libaom may be slow but it's the reference implementation that everything else is basing itself on to produce accurate results, it's not going anywhere.

Albeit given you enabled svt-av1, disabling it makes sense then even if it didn't give expected results
Top
Post Reply

8 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy