@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Increase maximum Image File Transform pixel dimensions

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

+1 -1
+1 -1
src/applications/files/transform/PhabricatorFileImageTransform.php
··· 372 372 * @return array<int> Maximum width and height 373 373 */ 374 374 public function getMaxTransformDimensions() { 375 - return array(4096, 4096); 375 + return array(8160, 6144); 376 376 } 377 377 378 378 private function shouldUseImagemagick() {