split out image cropping to width x height, add StorageManager::Match

This commit is contained in:
Albert Yi
2018-07-03 17:55:02 -07:00
parent 99807580d5
commit 6dfb78fca8
5 changed files with 159 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ class PixivUgoiraConverter
zipfile = Zip::File.new(ugoira_file.path)
zipfile.entries.first.extract(file.path) { true } # 'true' means overwrite the existing tempfile.
DanbooruImageResizer.crop(file, Danbooru.config.small_image_width, 85)
DanbooruImageResizer.crop(file, Danbooru.config.small_image_width, Danbooru.config.small_image_width, 85)
ensure
file.close!
end