Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 18, 2023
1 parent c618f84 commit 933d7b6
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions install/5.0/setup-imagemagick-7.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,73 @@

cat << EOF
================ [imagemagick 7 setup script] ====================
Remove old ImageMagick
EOF

apt remove imagemagick

cat << EOF
================ [imagemagick 7 setup script] ====================
Download source
EOF

git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
cd ImageMagick
git checkout $(git tag -l | grep -E '^7' | sort -V | tail -n 1)

cat << EOF
================ [imagemagick 7 setup script] ====================
Install dependent packages
EOF

apt update
apt install -y \
libjpeg-dev libpng-dev libpng16-16 libltdl-dev libheif-dev libraw-dev libtiff-dev libopenjp2-tools \
libopenjp2-7-dev libjpeg-turbo-progs libfreetype6-dev libheif-dev libfreetype6-dev libopenexr-dev \
libwebp-dev libgif-dev

cat << EOF
================ [imagemagick 7 setup script] ====================
Configure
EOF

./configure --with-modules --enable-file-type --with-quantum-depth=32 --with-jpeg=yes --with-png=yes \
--with-gif=yes --with-webp=yes --with-heic=yes --with-raw=yes --with-tiff=yes --with-openjp2 \
--with-freetype=yes --with-webp=yes --with-openexr=yes --with-gslib=yes --with-gif=yes --with-perl=yes \
--with-jxl=yes

cat << EOF
================ [imagemagick 7 setup script] ====================
Make
EOF

make

cat << EOF
================ [imagemagick 7 setup script] ====================
Make install
EOF

make install
ldconfig /usr/local/lib

cat << EOF
=========== [imagemagick 7 setup script completed] ===============
ImageMagick 7 setup is completed!
Please check AVIF format on your Mastodon.
EOF

0 comments on commit 933d7b6

Please sign in to comment.