Add comment
This commit is contained in:
parent
c618f84387
commit
933d7b6860
1 changed files with 51 additions and 0 deletions
|
@ -1,22 +1,73 @@
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
================ [imagemagick 7 setup script] ====================
|
||||||
|
Remove old ImageMagick
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
apt remove imagemagick
|
apt remove imagemagick
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
================ [imagemagick 7 setup script] ====================
|
||||||
|
Download source
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
|
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
|
||||||
cd ImageMagick
|
cd ImageMagick
|
||||||
git checkout $(git tag -l | grep -E '^7' | sort -V | tail -n 1)
|
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 update
|
||||||
apt install -y \
|
apt install -y \
|
||||||
libjpeg-dev libpng-dev libpng16-16 libltdl-dev libheif-dev libraw-dev libtiff-dev libopenjp2-tools \
|
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 \
|
libopenjp2-7-dev libjpeg-turbo-progs libfreetype6-dev libheif-dev libfreetype6-dev libopenexr-dev \
|
||||||
libwebp-dev libgif-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 \
|
./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-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-freetype=yes --with-webp=yes --with-openexr=yes --with-gslib=yes --with-gif=yes --with-perl=yes \
|
||||||
--with-jxl=yes
|
--with-jxl=yes
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
================ [imagemagick 7 setup script] ====================
|
||||||
|
Make
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
================ [imagemagick 7 setup script] ====================
|
||||||
|
Make install
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
make install
|
make install
|
||||||
ldconfig /usr/local/lib
|
ldconfig /usr/local/lib
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
|
||||||
|
=========== [imagemagick 7 setup script completed] ===============
|
||||||
|
ImageMagick 7 setup is completed!
|
||||||
|
Please check AVIF format on your Mastodon.
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue