-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from dooman87/feature/avif-support
Feature/avif support
- Loading branch information
Showing
5 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM debian:buster-slim | ||
|
||
ARG IM_VERSION=7.0.10-25 | ||
ARG LIB_HEIF_VERSION=1.7.0 | ||
ARG LIB_AOM_VERSION=2.0.0 | ||
|
||
RUN apt-get -y update && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y git make gcc pkg-config autoconf curl g++ \ | ||
# libaom | ||
yasm cmake \ | ||
# libheif | ||
libde265-0 libde265-dev libjpeg62-turbo libjpeg62-turbo-dev x265 libx265-dev libtool \ | ||
# IM | ||
libpng16-16 libpng-dev libjpeg62-turbo libjpeg62-turbo-dev libwebp6 libwebp-dev libgomp1 libwebpmux3 libwebpdemux2 ghostscript && \ | ||
# Building libaom | ||
git clone https://aomedia.googlesource.com/aom && \ | ||
cd aom && git checkout v${LIB_AOM_VERSION} && cd .. && \ | ||
mkdir build_aom && \ | ||
cd build_aom && \ | ||
cmake ../aom/ -DENABLE_TESTS=0 -DBUILD_SHARED_LIBS=1 && make && make install && \ | ||
ldconfig /usr/local/lib && \ | ||
cd .. && \ | ||
rm -rf aom && \ | ||
rm -rf build_aom && \ | ||
# Building libheif | ||
curl -L https://github.com/strukturag/libheif/releases/download/v${LIB_HEIF_VERSION}/libheif-${LIB_HEIF_VERSION}.tar.gz -o libheif.tar.gz && \ | ||
tar -xzvf libheif.tar.gz && cd libheif-${LIB_HEIF_VERSION}/ && ./autogen.sh && ./configure && make && make install && cd .. && \ | ||
ldconfig /usr/local/lib && \ | ||
rm -rf libheif-${LIB_HEIF_VERSION} && rm libheif.tar.gz && \ | ||
# Building ImageMagick | ||
git clone https://github.com/ImageMagick/ImageMagick.git && \ | ||
cd ImageMagick && git checkout ${IM_VERSION} && \ | ||
./configure --without-magick-plus-plus --disable-docs --disable-static && \ | ||
make && make install && \ | ||
ldconfig /usr/local/lib && \ | ||
apt-get remove --autoremove --purge -y gcc make cmake curl g++ yasm git autoconf pkg-config libpng-dev libjpeg62-turbo-dev libwebp-dev libde265-dev libx265-dev && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /ImageMagick | ||
|
||
ENTRYPOINT ["convert"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters