Add HEIF conversion support to ImageMagick (#473)
authorPenar Musaraj <pmusaraj@gmail.com>
Fri, 10 Jul 2020 13:20:52 +0000 (09:20 -0400)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2020 13:20:52 +0000 (09:20 -0400)
image/base/Dockerfile
image/base/install-imagemagick

index e4dd449fd76646ce06b5e0b90c90e6641b058b4a..1a697102108e2bc7336a217a02dfbe392b62ecff 100644 (file)
@@ -87,7 +87,7 @@ ADD install-imagemagick /tmp/install-imagemagick
 RUN /tmp/install-imagemagick
 
 # Validate install
-RUN ruby -Eutf-8 -e "v = \`convert -version\`; %w{png tiff jpeg freetype}.each { |f| unless v.include?(f); STDERR.puts('no ' + f +  ' support in imagemagick'); exit(-1); end }"
+RUN ruby -Eutf-8 -e "v = \`convert -version\`; %w{png tiff jpeg freetype heic}.each { |f| unless v.include?(f); STDERR.puts('no ' + f +  ' support in imagemagick'); exit(-1); end }"
 
 ADD install-pngcrush /tmp/install-pngcrush
 RUN /tmp/install-pngcrush
index e8debe0d8aa3735dd805c8e5cca78aa25382d4f0..8a52ebabaf14fc3bd5a3c4e1cd533e2980d1fdb8 100755 (executable)
@@ -14,7 +14,7 @@ WDIR=/tmp/imagemagick
 
 # Install build deps
 apt -y -q remove imagemagick
-apt -y -q install ghostscript gsfonts pkg-config autoconf libbz2-dev libjpeg-dev libtiff-dev libfreetype6-dev
+apt -y -q install ghostscript gsfonts pkg-config autoconf libbz2-dev libjpeg-dev libtiff-dev libfreetype6-dev libheif-dev
 
 mkdir -p $WDIR
 cd $WDIR
@@ -55,7 +55,8 @@ PKG_CONF_LIBDIR=$PREFIX/lib LDFLAGS=-L$PREFIX/lib CFLAGS=-I$PREFIX/include ./con
           --without-lcms \
           --with-lzma \
           --with-png \
-          --with-tiff
+          --with-tiff \
+          --with-heic
 make all && make install
 
 cd $HOME