mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: raise exception when getting dimensions of missing image
- follow-up on 0eacd45ab1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module ImageSizer
|
||||
|
||||
# Resize an image to the aspect ratio we want
|
||||
def self.resize(width = nil, height = nil, opts = {})
|
||||
def self.resize(width, height, opts = {})
|
||||
return if width.blank? || height.blank?
|
||||
|
||||
max_width = (opts[:max_width] || SiteSetting.max_image_width).to_f
|
||||
|
||||
Reference in New Issue
Block a user