Merge pull request #7806 from meyerbaptiste/fix/lib-imagick
Fix support for imagemagick <3.3pull/7835/head
commit
1970e97b47
|
@ -158,15 +158,10 @@ class PlatformRepository extends ArrayRepository
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'imagick':
|
case 'imagick':
|
||||||
$reflector = new \ReflectionExtension('imagick');
|
$imagick = new \Imagick();
|
||||||
|
$imageMagickVersion = $imagick->getVersion();
|
||||||
ob_start();
|
preg_match('/^ImageMagick ([\d.]+)-(\d+)/', $imageMagickVersion['versionString'], $matches);
|
||||||
$reflector->info();
|
|
||||||
$output = ob_get_clean();
|
|
||||||
|
|
||||||
preg_match('/^(Imagick using ImageMagick library version|ImageMagick version) => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches);
|
|
||||||
$prettyVersion = "{$matches[1]}.{$matches[2]}";
|
$prettyVersion = "{$matches[1]}.{$matches[2]}";
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'libxml':
|
case 'libxml':
|
||||||
|
|
Loading…
Reference in New Issue