From 6ca588f2e0de0d4fd6f5cc1bffacabb9033d2d90 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 14 May 2013 12:02:35 -0400 Subject: [PATCH] fixes #1549 --- app/models/upload.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/upload.rb b/app/models/upload.rb index fbfae20ef..cac56aca2 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -192,9 +192,9 @@ class Upload < ActiveRecord::Base self.tag_string = "#{tag_string} lowres".strip end - if image_width >= 1024 && image_width.to_f / image_height >= 3 + if image_width >= 1024 && image_width.to_f / image_height >= 4 self.tag_string = "#{tag_string} wide_image".strip - elsif image_height >= 1024 && image_height.to_f / image_width >= 3 + elsif image_height >= 1024 && image_height.to_f / image_width >= 4 self.tag_string = "#{tag_string} tall_image".strip end end