Skip to content

Commit

Permalink
build imagemagick against latest liboam, libavif and libheif to speed…
Browse files Browse the repository at this point in the history
…up conversation time to avif images
  • Loading branch information
aweichler authored and brusch committed Dec 14, 2022
1 parent 14078a9 commit 0617481
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,42 @@ RUN set -eux; \
xfonts-75dpi xfonts-base libjpeg62-turbo \
libonig-dev optipng pngquant inkscape; \
\
apt-get install -y libavif-dev libheif-dev optipng pngquant chromium chromium-sandbox; \
apt-get install -y optipng pngquant chromium chromium-sandbox; \
docker-php-ext-configure pcntl --enable-pcntl; \
docker-php-ext-install pcntl intl mbstring mysqli bcmath bz2 soap xsl pdo pdo_mysql fileinfo exif zip opcache sockets; \
\
git clone https://aomedia.googlesource.com/aom; \
mkdir aom-build; \
cmake -S aom/ -B aom-build/; \
cd aom-build; \
make --jobs=$(nproc); \
make install; \
ldconfig /usr/local/lib; \
cd ..; \
rm -Rf aom; \
rm -Rf aom-build; \
\
git clone https://github.com/AOMediaCodec/libavif.git; \
mkdir libavif-build; \
cmake -S libavif/ -B libavif-build/; \
cd libavif-build; \
make --jobs=$(nproc); \
make install; \
ldconfig /usr/local/lib; \
cd ..; \
rm -Rf libavif; \
rm -Rf libavif-build; \
\
git clone https://github.com/strukturag/libheif.git; \
cd libheif; \
./autogen.sh; \
./configure; \
make --jobs=$(nproc); \
make install; \
ldconfig /usr/local/lib; \
cd ..; \
rm -Rf libheif; \
\
wget https://imagemagick.org/archive/ImageMagick.tar.gz; \
tar -xvf ImageMagick.tar.gz; \
cd ImageMagick-7.*; \
Expand Down

0 comments on commit 0617481

Please sign in to comment.