forked from mastodon/mastodon
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 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
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 | ||
|