Replies: 3 comments 3 replies
-
Does running |
Beta Was this translation helpful? Give feedback.
-
Perhaps that should point to # HEIC
$ pkg-config libheif --variable=builtin_h265_encoder
$ heif-enc --list-encoders
# AVIF
$ pkg-config libheif --variable=builtin_avif_encoder
$ heif-enc -A --list-encoders Alternatively, you don't need to compile this yourself on Amazon Linux 2, you can just use libvips (and the dynamic libheif module) from Remi's RPM repository, see: #1184 (comment). Optional modules## Install optional modules
## See: https://github.com/remicollet/remirepo/issues/171
# HEIC / AVIF support via libheif
yum install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install vips-heif
# *Magick support via GraphicsMagick
yum install vips-magick-gm
# *Magick support via ImageMagick 6
yum install vips-magick-im6
# *Magick support via ImageMagick 7
yum install vips-magick-im7
# OpenSlide support
yum install vips-openslide
# PDF load support via Poppler
yum install vips-poppler However, since Amazon Linux 2 is a derivative of RHEL 7 it ends up installing libheif 1.4.0, which is quite old already. You could try opening an issue at https://github.com/remicollet/remirepo/issues if that's a problem for you. |
Beta Was this translation helpful? Give feedback.
-
@kleisauke FYI, using libheif from Fedora or EPEL-9 repository, you also need libheif-freeworld from RPMfusion (x265 HEVC encoder) |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I'm trying to build VIPS with HEIF support on Amazon Linux.
I am able to build and install it, and confirm that HEIF support is available.
Nonetheless when I try to operate on a .heif / .heic file, I get an "Unsupported codec" error on heifload, and a "Unsupported compression" error on heifsave.
To Reproduce
Steps to reproduce the behavior:
Use Image
heif
jpeg
Use Configuration
Build libx265, libde265, libheif, and libvips from source using the following script:
During the script,
configure
forlibheif
shows:and
configure
forlibvips
shows:After running the script, I confirmed correct installation of VIPS with HEIF support:
See error
By all accounts, it seems VIPS is installed with HEIF support. But when I try to load or save a .heif / .heic file, I get the following errors:
Expected behavior
A VIPS installation that claims to support HEIF load / save should be able to load and save HEIF files.
Actual behavior
VIPS throws an error saying HEIF load / save are not supported
Screenshots
n/a
Environment
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions