PHP.nl

imageinterlace

imageinterlace

Enable or disable interlace

bool **imageinterlace** GdImage $image  $enable
turns the interlace bit on or off.

imageinterlace

If the interlace bit is set and the image is used as a image, the image is created as a progressive .

enableIf true, the image will be interlaced, if false the interlace bit is turned off. Passing null will result in the interlacing behavior not being changed.

Returns true if the interlace bit is set for the image, false otherwise.

**Voorbeeld: Turn on interlacing using **

<?php
// Create an image instance
$im = imagecreatefromgif('php.gif');

// Enable interlancing
imageinterlace($im, true);

// Save the interlaced image
imagegif($im, './php_interlaced.gif');
?>