MediaFile: allow generating thumbnails for corrupt files.
We need this so we can regenerate thumbnails for old posts with corrupted images.
This commit is contained in:
@@ -120,7 +120,7 @@ class MediaFile::Image < MediaFile
|
||||
|
||||
# @return [Vips::Image] the Vips image object for the file
|
||||
def image
|
||||
Vips::Image.new_from_file(file.path, fail: true).autorot
|
||||
Vips::Image.new_from_file(file.path, fail: strict).autorot
|
||||
end
|
||||
|
||||
def video
|
||||
|
||||
Reference in New Issue
Block a user