From 950640ddf601d5ec1fdfbcfa5153eb8f8bf085cc Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Mon, 5 Jan 2026 13:25:17 +0100 Subject: [PATCH] Increase maximum Image File Transform pixel dimensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Modern mobile phones support larger image dimensions. Limit the image transform limits to show less distracting "It's a mystery" placeholder thumbnails to users. Closes T16414 Test Plan: * Create a PNG file with dimensions 8160px × 6144px * Upload via http://phorge.localhost/file/ * On resulting http://phorge.localhost/F3519, select "View Transforms" * Click "Regenerate" and/or embed the file via `{F3519}` in a Maniphest task comment * Get a placeholder image before, get a thumbnail after this patch Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: avivey, haylin, revi, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T16414 Differential Revision: https://we.phorge.it/D26661 --- .../files/transform/PhabricatorFileImageTransform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/files/transform/PhabricatorFileImageTransform.php b/src/applications/files/transform/PhabricatorFileImageTransform.php index 5726f0d34e..a5050ac7d0 100644 --- a/src/applications/files/transform/PhabricatorFileImageTransform.php +++ b/src/applications/files/transform/PhabricatorFileImageTransform.php @@ -372,7 +372,7 @@ abstract class PhabricatorFileImageTransform extends PhabricatorFileTransform { * @return array Maximum width and height */ public function getMaxTransformDimensions() { - return array(4096, 4096); + return array(8160, 6144); } private function shouldUseImagemagick() { -- 2.51.2