save progressive jpeg
<?php
$image = new Imagick('image.jpg');
$image->thumbnailImage(500, 0);
$image->setInterlaceScheme(Imagick::INTERLACE_PLANE);
$image->writeImage('progressive.jpg');
?>
PHP - Manual: Imagick::setInterlaceScheme
2024-11-14
(PECL imagick 2, PECL imagick 3)
Imagick::setInterlaceScheme — Sets the image compression
$interlace_scheme
): boolSets the image compression.
interlace_scheme
成功时返回 true
。
save progressive jpeg
<?php
$image = new Imagick('image.jpg');
$image->thumbnailImage(500, 0);
$image->setInterlaceScheme(Imagick::INTERLACE_PLANE);
$image->writeImage('progressive.jpg');
?>
官方地址:https://www.php.net/manual/en/imagick.setinterlacescheme.php