Interlace an Image in PHP

Description

The following code shows how to interlace an Image.

Example


//from   w w  w.  j  a v a  2s .  com
<?php
    $image = imagecreatefrompng("test.png");
    imagefilter($image, IMG_FILTER_MEAN_REMOVAL);
    imageinterlace($image, 1);
    header("content-type: image/png");
    imagepng($image);
    imagedestroy($image);
?>

The code above generates the following result.

Interlace an Image in PHP




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text