ImageMagick image processing for marko/media — resize, crop, and convert images with superior quality, AVIF support, and ICC color profile handling.
composer require marko/media-imagickRequirement: The Imagick PHP extension must be installed (
pecl install imagick).
use Marko\MediaImagick\Driver\ImagickImageProcessor;
$processor = new ImagickImageProcessor();
$outputPath = $processor->resize(
imagePath: '/path/to/image.jpg',
width: 800,
height: 600,
);Full usage, API reference, and examples: marko/media-imagick