diff --git a/app/logical/danbooru_image_resizer.rb b/app/logical/danbooru_image_resizer.rb index 6d6800f3b..2196d07f2 100644 --- a/app/logical/danbooru_image_resizer.rb +++ b/app/logical/danbooru_image_resizer.rb @@ -4,10 +4,10 @@ module DanbooruImageResizer # Taken from ArgyllCMS 2.0.0 (see also: https://ninedegreesbelow.com/photography/srgb-profile-comparison.html) SRGB_PROFILE = "#{Rails.root}/config/sRGB.icm" # http://jcupitt.github.io/libvips/API/current/libvips-resample.html#vips-thumbnail - THUMBNAIL_OPTIONS = { size: :down, linear: false, auto_rotate: false, export_profile: SRGB_PROFILE, import_profile: SRGB_PROFILE } + THUMBNAIL_OPTIONS = { size: :down, linear: false, no_rotate: true, export_profile: SRGB_PROFILE, import_profile: SRGB_PROFILE } # http://jcupitt.github.io/libvips/API/current/VipsForeignSave.html#vips-jpegsave JPEG_OPTIONS = { background: 255, strip: true, interlace: true, optimize_coding: true } - CROP_OPTIONS = { linear: false, auto_rotate: false, export_profile: SRGB_PROFILE, import_profile: SRGB_PROFILE, crop: :attention } + CROP_OPTIONS = { linear: false, no_rotate: true, export_profile: SRGB_PROFILE, import_profile: SRGB_PROFILE, crop: :attention } # XXX libvips-8.4 on Debian doesn't support the `Vips::Image.thumbnail` method. # On 8.4 we have to shell out to vipsthumbnail instead. Remove when Debian supports 8.5. diff --git a/vagrant/install.sh b/vagrant/install.sh index 6267fba0b..b82937546 100755 --- a/vagrant/install.sh +++ b/vagrant/install.sh @@ -141,7 +141,7 @@ fi script_log "Installing libvips..." if ! which vipsthumbnail >/dev/null; then - VIPS_VERSION=8.7.0 + VIPS_VERSION=8.8.3 pushd . cd /tmp wget -q https://github.com/libvips/libvips/releases/download/v$VIPS_VERSION/vips-$VIPS_VERSION.tar.gz