mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-30 23:33:42 +01:00
Allow higher-resolution images (4096x4096)
This commit is contained in:
parent
1c419a9af3
commit
62e16b7f16
3 changed files with 3 additions and 3 deletions
|
@ -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 = {};
|
||||||
|
|
||||||
|
|
|
@ -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 = {};
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue