Change max. image dimensions to 1920x1080px (1080p) (#15690)
* Change max. image size to 1920x1080px * Change it in web UI toomain
parent
4e933924bd
commit
acf1842896
|
@ -1,6 +1,6 @@
|
||||||
import EXIF from 'exif-js';
|
import EXIF from 'exif-js';
|
||||||
|
|
||||||
const MAX_IMAGE_PIXELS = 1638400; // 1280x1280px
|
const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px
|
||||||
|
|
||||||
const _browser_quirks = {};
|
const _browser_quirks = {};
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ class MediaAttachment < ApplicationRecord
|
||||||
|
|
||||||
IMAGE_STYLES = {
|
IMAGE_STYLES = {
|
||||||
original: {
|
original: {
|
||||||
pixels: 1_638_400, # 1280x1280px
|
pixels: 2_073_600, # 1920x1080px
|
||||||
file_geometry_parser: FastGeometryParser,
|
file_geometry_parser: FastGeometryParser,
|
||||||
}.freeze,
|
}.freeze,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue