Reduced allowed image size to 2000x2000
This commit is contained in:
parent
dd6f5b73f1
commit
d1ead2d825
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
class ImageUploader < Shrine
|
class ImageUploader < Shrine
|
||||||
ALLOWED_TYPES = %w[image/jpeg image/png image/webp]
|
ALLOWED_TYPES = %w[image/jpeg image/png image/webp]
|
||||||
MAX_SIZE = 5*1024*1024 # 5 MB
|
MAX_SIZE = 5*1024*1024 # 5 MB
|
||||||
MAX_DIMENSIONS = [3000, 3000] # 3000x3000
|
MAX_DIMENSIONS = [2000, 2000] # 2000x2000
|
||||||
|
|
||||||
plugin :remove_attachment
|
plugin :remove_attachment
|
||||||
plugin :pretty_location
|
plugin :pretty_location
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue