Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# install some basic tools
apt update
apt install -y sudo vim git wget exiftool

# add HW media conversion support (for Intel graphics)
groupadd -g 109 render
usermod -a -G video www-data
usermod -a -G render www-data
apt install -y vainfo intel-media-va-driver-non-free ffmpeg

# Compile latest ImageMagick
apt install -y build-essential autoconf libtool
apt build-dep -y 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 -j 6
make install
cd /usr/src/libheif/
./autogen.sh
./configure
make -j 6
make install
cd /usr/src/
#wget https://www.imagemagick.org/download/ImageMagick.tar.gz
#wget https://imagemagick.org/download/ImageMagick.tar.gz
#wget https://imagemagick.org/archive/ImageMagick.tar.gz
wget https://download.imagemagick.org/archive/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick-7*
./configure --with-heic=yes
make -j 6
make install
ldconfig

Optional switch back from ffmpeg 6.0.1 to 5.1.4

#apt install -y
Code Block
apt-cache policy ffmpeg
apt remove ffmpeg
apt install ffmpeg=7:5.1.4-0+deb12u1
Code Block

compile php-imagick

Code Block

cd /usr/src/
wget http://pecl.php.net/get/imagick-3.7.0.tgz
tar -xvzf imagick-3.7.0.tgz
cd imagick-3.7.0/
phpize
./configure
make -j 6
make install
echo "LimitRequestBody 0" > /etc/apache2/conf-enabled/apache-limits.conf
service apache2 reload

Cleanup build directory

Code Block
cd /usr/src/
rm ImageMagick.tar.gz
rm imagick-*.tgz
rm php.tar.xz
rm php.tar.xz.asc
rm -Rf ImageMagick-*
rm -Rf imagick-*


Check installations

Code Block
vainfo

...