Skip to content

Instantly share code, notes, and snippets.

@wuzhonglin
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save wuzhonglin/24b3394188d9accc8ae3 to your computer and use it in GitHub Desktop.

Select an option

Save wuzhonglin/24b3394188d9accc8ae3 to your computer and use it in GitHub Desktop.
画像処理ライブラリvipsの導入
# install library
wget http://www.vips.ecs.soton.ac.uk/supported/current/vips-8.0.2.tar.gz
tar zxf vips-8.0.2.tar.gz
cd vips-8.0.2
yum install glib2-devel
yum install libxml2-devel
yum install libpng-devel
yum install libtiff-devel
yum install libjpeg-devel
yum install libwebp-devel
./configure;make;make install
# install gem
gem install ruby-vips
# or
gem install vips-process
# thumbnail use by command
/usr/local/bin/vipsthumbnail in.png -s 680x450 -c -o out.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment