apt-get update apt-get install build-essential autoconf libtool pkg-config git 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 make install cd /usr/src/libheif/ ./autogen.sh ./configure make make install cd /usr/src/ wget https://www.imagemagick.org/download/ImageMagick.tar.gz tar xf ImageMagick.tar.gz cd ImageMagick-7* ./configure --with-heic=yes make make install ldconfig
使用
1 2 3 4 5
# convert a single image magick convert foo.HEIC foo.jpg