I want to install imagemagick v7. I need the command(s) to add in my Dockerfile.
This command installs v6.9 and this version did not have magick
command
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick
can anyone helps me to find how to install imagemagick v7 to have magick command? Thank you very much
RUN apt-get update && apt-get install -y wget && \
apt-get install -y autoconf pkg-config
RUN apt-get update && apt-get install -y wget && \
apt-get install -y build-essential curl libpng-dev && \
wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.0-31.tar.gz && \
tar xzf 7.1.0-31.tar.gz && \
rm 7.1.0-31.tar.gz && \
apt-get clean && \
apt-get autoremove
RUN sh ./ImageMagick-7.1.0-31/configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes --with-xml=yes --with-gs-font-dir=yes && \
make -j && make install && ldconfig /usr/local/lib/
you can change the version of you want