diff --git a/system/Images/Handlers/ImageMagickHandler.php b/system/Images/Handlers/ImageMagickHandler.php index f928b2868946..3adf8e7566c8 100644 --- a/system/Images/Handlers/ImageMagickHandler.php +++ b/system/Images/Handlers/ImageMagickHandler.php @@ -232,9 +232,10 @@ public function getVersion(): string * @param string $action * @param integer $quality * - * @return ImageMagickHandler|boolean + * @return array Lines of output from shell command + * @throws \Exception */ - protected function process(string $action, int $quality = 100) + protected function process(string $action, int $quality = 100): array { // Do we have a vaild library path? if (empty($this->config->libraryPath)) @@ -303,8 +304,8 @@ public function save(string $target = null, int $quality = 90): bool $result = $this->process($action, $quality); unlink($this->resource); - - return $result; + + return true; } //--------------------------------------------------------------------