mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Set MAX_IMAGE_PIXELS to 4096x2160px (4K)
This commit is contained in:
parent
3290e7e025
commit
a7952a2f69
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class MediaAttachment < ApplicationRecord
|
|||
|
||||
IMAGE_STYLES = {
|
||||
original: {
|
||||
pixels: 3_686_400, #1920x1920px
|
||||
pixels: 8_847_360, #4096x2160px
|
||||
file_geometry_parser: FastGeometryParser,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue