diff --git a/app/models/upload.rb b/app/models/upload.rb index bf3d415515..802be437e7 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -128,7 +128,9 @@ class Upload < ActiveRecord::Base end self.width, self.height = size = FastImage.new(path).size - self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size) + if !size.blank? + self.thumbnail_width, self.thumbnail_height = ImageSizer.resize(*size) + end nil end