Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alex-Bond/fee19f9618170d2e33edc941e52906dc to your computer and use it in GitHub Desktop.
Save Alex-Bond/fee19f9618170d2e33edc941e52906dc to your computer and use it in GitHub Desktop.
RUN apt-get install -y libwebp-dev libde265-dev autotools-dev automake pkg-config libtool wget git make gcc pkg-config autoconf g++ curl
RUN wget https://github.com/strukturag/libheif/archive/v1.6.2.tar.gz && \
tar -xvf v1.6.2.tar.gz && \
cd libheif-1.6.2/ && \
./autogen.sh && \
./configure && \
make && \
make install
ARG IM_VERSION=7.0.10-9
RUN apt-get -y install git make gcc pkg-config autoconf && \
apt-get -y install libpng16-16 libpng-dev libjpeg62-turbo libjpeg62-turbo-dev libwebp6 libwebp-dev libgomp1 ghostscript && \
git clone https://github.com/ImageMagick/ImageMagick.git && \
cd ImageMagick && git checkout ${IM_VERSION} && \
./configure --with-heic=yes --with-webp=yes && make && make install && \
ldconfig /usr/local/lib
#apt-get remove --autoremove --purge -y gcc make git autoconf pkg-config libpng-dev libjpeg62-turbo-dev libwebp-dev libde265-dev autotools-dev automake pkg-config wget git make gcc pkg-config autoconf g++ curl
RUN \
LIBWEBP_VERSION=1.1.0 \
&& curl -L -O https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$LIBWEBP_VERSION.tar.gz \
&& tar zxf libwebp-$LIBWEBP_VERSION.tar.gz \
&& cd libwebp-$LIBWEBP_VERSION \
&& ./configure --prefix /usr/local --enable-libwebpmux --enable-libwebpdemux && make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment