@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 the maximum size eligible for image transforms configurable from 4MB->16MB

Summary: Also increase the timeout for the external process to complete the transform.

Test Plan: Careful inspection

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: joshuaspence, cburroughs, chad, Korvin

Differential Revision: https://secure.phabricator.com/D14528

authored by

Nipunn Koorapati and committed by
epriestley
c4ea1e6e 5b4825cf

+3 -3
+3 -3
src/applications/files/transform/PhabricatorFileImageTransform.php
··· 119 119 $out = new TempFile(); 120 120 121 121 $future = new ExecFuture('convert %s %Ls %s', $tmp, $argv, $out); 122 - // Don't spend more than 10 seconds resizing; just fail if it takes longer 122 + // Don't spend more than 60 seconds resizing; just fail if it takes longer 123 123 // than that. 124 - $future->setTimeout(10)->resolvex(); 124 + $future->setTimeout(60)->resolvex(); 125 125 126 126 $data = Filesystem::readFile($out); 127 127 ··· 259 259 260 260 $file = $this->file; 261 261 262 - $max_size = (1024 * 1024 * 4); 262 + $max_size = (1024 * 1024 * 16); 263 263 $img_size = $file->getByteSize(); 264 264 if ($img_size > $max_size) { 265 265 throw new Exception(