Increase preview card image size limit from 2MB to 8MB when using libvips (#31904)
This commit is contained in:
parent
5ba3405be4
commit
4b40d13cb3
2 changed files with 7 additions and 1 deletions
|
@ -39,7 +39,7 @@ class PreviewCard < ApplicationRecord
|
|||
include Attachmentable
|
||||
|
||||
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
|
||||
LIMIT = 2.megabytes
|
||||
LIMIT = Rails.configuration.x.use_vips ? 8.megabytes : 2.megabytes
|
||||
|
||||
BLURHASH_OPTIONS = {
|
||||
x_comp: 4,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue