切图软件GraphicsMagick安装

1.解压安装

  tar xvf GraphicsMagick-1.3.17.tar

./configure --prefix=/opt/GraphicsMagick --without-prel --enable-shared --disable-openmp

  make

  make install

2.配置环境变量:

   export GM_HOME=/opt/GraphicsMagick

  export PATH=$PATH:/opt/GraphicsMagick/bin

3.测试切图命令:gm convert input.jpg -thumbnail '100x100' output_1.jpg

你可能感兴趣的:(GraphicsMagick)