Set MAX_IMAGE_PIXELS to 4096x2160px (4K)

This commit is contained in:
wuyingren 2019-06-13 18:07:56 +08:00
parent 3290e7e025
commit a7952a2f69
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import EXIF from 'exif-js';
const MAX_IMAGE_PIXELS = 3686400; //1920x1920px
const MAX_IMAGE_PIXELS = 8847360; //4096x2160px
const getImageUrl = inputFile => new Promise((resolve, reject) => {
if (window.URL && URL.createObjectURL) {

View file

@ -40,7 +40,7 @@ class MediaAttachment < ApplicationRecord
IMAGE_STYLES = {
original: {
pixels: 3_686_400, #1920x1920px
pixels: 8_847_360, #4096x2160px
file_geometry_parser: FastGeometryParser,
},