fixes #1549
This commit is contained in:
@@ -192,9 +192,9 @@ class Upload < ActiveRecord::Base
|
|||||||
self.tag_string = "#{tag_string} lowres".strip
|
self.tag_string = "#{tag_string} lowres".strip
|
||||||
end
|
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
|
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
|
self.tag_string = "#{tag_string} tall_image".strip
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user