Allow higher-resolution images (4096x4096)

This commit is contained in:
Jeremy Kescher 2022-07-07 00:21:05 +02:00
parent 1c419a9af3
commit 62e16b7f16
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import EXIF from 'exif-js'; import EXIF from 'exif-js';
const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px const MAX_IMAGE_PIXELS = 16777216; // 4096x4096px
const _browser_quirks = {}; const _browser_quirks = {};

View file

@ -1,6 +1,6 @@
import EXIF from 'exif-js'; import EXIF from 'exif-js';
const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px const MAX_IMAGE_PIXELS = 16777216; // 4096x4096px
const _browser_quirks = {}; const _browser_quirks = {};

View file

@ -67,7 +67,7 @@ class MediaAttachment < ApplicationRecord
IMAGE_STYLES = { IMAGE_STYLES = {
original: { original: {
pixels: 2_073_600, # 1920x1080px pixels: 16_777_216, # 4096x4096px
file_geometry_parser: FastGeometryParser, file_geometry_parser: FastGeometryParser,
}.freeze, }.freeze,