Last active
August 29, 2015 14:23
-
-
Save wuzhonglin/24b3394188d9accc8ae3 to your computer and use it in GitHub Desktop.
画像処理ライブラリvipsの導入
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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