PHP 7.0.6 Released

Imagick::setInterlaceScheme

(PECL imagick 2.0.0)

Imagick::setInterlaceSchemeSets the image compression

Description

bool Imagick::setInterlaceScheme ( int $interlace_scheme )

Sets the image compression.

Parameters

interlace_scheme

Return Values

Returns TRUE on success.

User Contributed Notes

hayvanAdam
7 years ago
save progressive jpeg

<?php

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

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

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

?>
To Top