From a3d2bc5e08752faac9f9b8c024674edc755bd65e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 2 Nov 2015 15:41:44 +0100 Subject: l/Image/D/imagemagick: Allow output on stderr Imagemagick sometimes output warnings about files that do not conform to standards, but still renders them. Signed-off-by: Florian Pritz --- application/libraries/Image/Drivers/imagemagick.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application') diff --git a/application/libraries/Image/Drivers/imagemagick.php b/application/libraries/Image/Drivers/imagemagick.php index fb4e4d88f..8295469eb 100644 --- a/application/libraries/Image/Drivers/imagemagick.php +++ b/application/libraries/Image/Drivers/imagemagick.php @@ -70,7 +70,7 @@ class imagemagick implements \libraries\Image\ImageDriver { } try { - $ret = (new \libraries\ProcRunner($command))->execSafe(); + $ret = (new \libraries\ProcRunner($command))->forbid_nonzero()->exec(); } catch (\exceptions\ApiException $e) { throw new \exceptions\ApiException("libraries/Image/thumbnail-creation-failed", "Failed to create thumbnail", null, $e); } -- cgit v1.2.3-24-g4f1b