reverted post thumbnail change, fix for mod queue

This commit is contained in:
albert
2012-03-13 18:39:20 -04:00
parent 7269ec0076
commit a39d5bc19e
6 changed files with 8 additions and 32 deletions

View File

@@ -3,9 +3,9 @@ module Danbooru
image = Magick::Image.read(read_path).first
geometry = "#{width}x>"
if width == Danbooru.config.small_image_width && image.rows < image.columns
if width == Danbooru.config.small_image_width
# wider than it is tall
geometry = ">x#{height}"
geometry = "#{Danbooru.config.small_image_width}x#{Danbooru.config.small_image_width}>"
end
image.change_geometry(geometry) do |new_width, new_height, img|