Skip to content

Commit

Permalink
Change max. image dimensions to 1920x1080px (1080p) (mastodon#15690)
Browse files Browse the repository at this point in the history
* Change max. image size to 1920x1080px

* Change it in web UI too
  • Loading branch information
Gargron authored and chrisguida committed Feb 26, 2022
1 parent 4e93392 commit 4e43e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/utils/resize_image.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import EXIF from 'exif-js';

const MAX_IMAGE_PIXELS = 1638400; // 1280x1280px
const MAX_IMAGE_PIXELS = 2073600; // 1920x1080px

const _browser_quirks = {};

Expand Down
2 changes: 1 addition & 1 deletion app/models/media_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MediaAttachment < ApplicationRecord

IMAGE_STYLES = {
original: {
pixels: 1_638_400, # 1280x1280px
pixels: 2_073_600, # 1920x1080px
file_geometry_parser: FastGeometryParser,
}.freeze,

Expand Down

0 comments on commit 4e43e51

Please sign in to comment.