Imagick::setInterlaceScheme

(PECL imagick 2, PECL imagick 3)

Imagick::setInterlaceSchemeSets the image compression

说明

public Imagick::setInterlaceScheme ( int $interlace_scheme ) : bool

Sets the image compression.

参数

interlace_scheme

返回值

成功时返回 true

User Contributed Notes

hayvanAdam 12-May-2008 03:24
save progressive jpeg

<?php

$image
= new Imagick('image.jpg');
$image->thumbnailImage(500, 0);

$image->setInterlaceScheme(Imagick::INTERLACE_PLANE);

$image->writeImage('progressive.jpg');

?>