posts: generate 180x180px and 360x360px thumbnails (#4932).
Add two new thumbnail sizes. These new thumbnail sizes are generated on upload, but not used yet.
This commit is contained in:
@@ -86,8 +86,8 @@ class MediaFile::Image < MediaFile
|
||||
resize(w, h, size: :force, **options)
|
||||
end
|
||||
|
||||
def crop(max_width, max_height)
|
||||
resize(max_width, max_height, crop: :attention)
|
||||
def crop(max_width, max_height, **options)
|
||||
resize(max_width, max_height, crop: :attention, **options)
|
||||
end
|
||||
|
||||
def preview_frame
|
||||
|
||||
Reference in New Issue
Block a user