media assets: fix exception when generating thumbnails for videos/ugoiras.
This commit is contained in:
@@ -24,8 +24,8 @@ class MediaFile::Ugoira < MediaFile
|
||||
preview_frame.dimensions
|
||||
end
|
||||
|
||||
def preview(width, height)
|
||||
preview_frame.preview(width, height)
|
||||
def preview(width, height, **options)
|
||||
preview_frame.preview(width, height, **options)
|
||||
end
|
||||
|
||||
def crop(width, height)
|
||||
|
||||
@@ -9,8 +9,8 @@ class MediaFile::Video < MediaFile
|
||||
[video.width, video.height]
|
||||
end
|
||||
|
||||
def preview(max_width, max_height)
|
||||
preview_frame.preview(max_width, max_height)
|
||||
def preview(max_width, max_height, **options)
|
||||
preview_frame.preview(max_width, max_height, **options)
|
||||
end
|
||||
|
||||
def crop(max_width, max_height)
|
||||
|
||||
Reference in New Issue
Block a user