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:
evazion
2021-12-01 00:11:23 -06:00
parent 2ffe973275
commit f86e16cfbd
2 changed files with 8 additions and 4 deletions

View File

@@ -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