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
|
preview_frame.dimensions
|
||||||
end
|
end
|
||||||
|
|
||||||
def preview(width, height)
|
def preview(width, height, **options)
|
||||||
preview_frame.preview(width, height)
|
preview_frame.preview(width, height, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def crop(width, height)
|
def crop(width, height)
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ class MediaFile::Video < MediaFile
|
|||||||
[video.width, video.height]
|
[video.width, video.height]
|
||||||
end
|
end
|
||||||
|
|
||||||
def preview(max_width, max_height)
|
def preview(max_width, max_height, **options)
|
||||||
preview_frame.preview(max_width, max_height)
|
preview_frame.preview(max_width, max_height, **options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def crop(max_width, max_height)
|
def crop(max_width, max_height)
|
||||||
|
|||||||
Reference in New Issue
Block a user