diff --git a/tests/system/Images/ImageMagickHandlerTest.php b/tests/system/Images/ImageMagickHandlerTest.php index 31f1aeadb35b..012e782f6424 100644 --- a/tests/system/Images/ImageMagickHandlerTest.php +++ b/tests/system/Images/ImageMagickHandlerTest.php @@ -47,9 +47,11 @@ protected function setUp(): void $this->path = $this->origin . 'ci-logo.png'; - $handlerConfig = new Images(); - $handlerConfig->libraryPath = '/usr/bin/convert'; - $this->handler = Services::image('imagick', $handlerConfig, false); + $handlerConfig = new Images(); + if (is_file('/usr/bin/convert')) { + $handlerConfig->libraryPath = '/usr/bin/convert'; + } + $this->handler = Services::image('imagick', $handlerConfig, false); } public function testGetVersion()