Reduced allowed image size to 2000x2000

This commit is contained in:
Christoph Haas 2020-11-03 00:06:56 +01:00
parent dd6f5b73f1
commit d1ead2d825

View file

@ -4,7 +4,7 @@
class ImageUploader < Shrine
ALLOWED_TYPES = %w[image/jpeg image/png image/webp]
MAX_SIZE = 5*1024*1024 # 5 MB
MAX_DIMENSIONS = [3000, 3000] # 3000x3000
MAX_DIMENSIONS = [2000, 2000] # 2000x2000
plugin :remove_attachment
plugin :pretty_location