add lcms2 dependency in install
This commit is contained in:
@@ -46,7 +46,7 @@ fi
|
||||
apt-get update
|
||||
apt-get -y install $LIBSSL_DEV_PKG build-essential automake libxml2-dev libxslt-dev ncurses-dev sudo libreadline-dev flex bison ragel memcached libmemcached-dev git curl libcurl4-openssl-dev sendmail-bin sendmail nginx ssh coreutils ffmpeg mkvtoolnix
|
||||
apt-get -y install libpq-dev postgresql-client
|
||||
apt-get -y install libjpeg-turbo8-dev libexpat1-dev libgif-dev libpng-dev libexif-dev
|
||||
apt-get -y install liblcms2-dev libjpeg-turbo8-dev libexpat1-dev libgif-dev libpng-dev libexif-dev
|
||||
|
||||
# vrack specific stuff
|
||||
if [ -n "$VLAN_IP_ADDR" ] ; then
|
||||
|
||||
@@ -18,11 +18,7 @@ module DanbooruImageResizer
|
||||
end
|
||||
|
||||
def self.crop(file, width, height, quality = 90)
|
||||
if Vips.at_least_libvips?(8, 5)
|
||||
crop_ruby(file, width, height, quality)
|
||||
else
|
||||
crop_shell(file, width, height, quality)
|
||||
end
|
||||
crop_shell(file, width, height, quality)
|
||||
end
|
||||
|
||||
# https://github.com/jcupitt/libvips/wiki/HOWTO----Image-shrinking
|
||||
|
||||
Reference in New Issue
Block a user