Updated imagick for HEIC photos
This commit is contained in:
parent
bc3a465c0f
commit
34d0a7416c
33
Dockerfile
33
Dockerfile
@ -3,9 +3,36 @@
|
|||||||
|
|
||||||
FROM registry.leenooks.net/leenooks/php:7.3-fpm-mp
|
FROM registry.leenooks.net/leenooks/php:7.3-fpm-mp
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list \
|
||||||
&& apt-get install -y libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev libmagickwand-dev --no-install-recommends \
|
&& cat /etc/apt/sources.list|grep ^deb | sed -E 's/^deb/deb-src/' >> /etc/apt/sources.list \
|
||||||
|
&& apt-get -y update \
|
||||||
|
&& apt-get -y install wget build-essential autoconf libtool git-core libwmf0.2-7 \
|
||||||
|
&& apt-get -y build-dep imagemagick libmagickcore-dev libde265 libheif \
|
||||||
|
&& cd /usr/src/ \
|
||||||
|
&& git clone https://github.com/strukturag/libde265.git \
|
||||||
|
&& git clone https://github.com/strukturag/libheif.git \
|
||||||
|
&& cd libde265/ \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& ./configure \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd /usr/src/libheif/ \
|
||||||
|
&& ./autogen.sh \
|
||||||
|
&& ./configure \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd /usr/src/ \
|
||||||
|
&& wget https://www.imagemagick.org/download/ImageMagick.tar.gz \
|
||||||
|
&& tar xf ImageMagick.tar.gz \
|
||||||
|
&& cd ImageMagick-7* \
|
||||||
|
&& ./configure --with-heic=yes \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& ldconfig \
|
||||||
|
&& apt-get install -y libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev --no-install-recommends \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
|
||||||
&& docker-php-ext-install -j$(nproc) bz2 sockets gmp gd pcntl exif \
|
&& docker-php-ext-install -j$(nproc) bz2 sockets gmp gd pcntl exif \
|
||||||
&& pecl install imagick && docker-php-ext-enable imagick \
|
&& pecl install imagick && docker-php-ext-enable imagick \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
&& apt-get purge -y build-essential autoconf libtool wget libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev libmagickcore-dev hicolor-icon-theme texlive-base texlive-binaries libx11-dev \
|
||||||
|
&& apt-get autoremove -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /usr/src/*
|
||||||
|
Loading…
Reference in New Issue
Block a user