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:
evazion
2021-12-02 01:59:22 -06:00
parent 9e77ff4948
commit 17537084fe
2 changed files with 17 additions and 9 deletions

View File

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