IMG_FILTER_CONTRAST : imagefilter « Graphics Image « PHP






IMG_FILTER_CONTRAST

 
<?php
    $image = imagecreatefrompng("space.png");
    imagefilter($image, IMG_FILTER_CONTRAST, 20);
    header("content-type: image/png");
    imagepng($image);
    imagedestroy($image);
?>
  
  








Related examples in the same category

1.Special Effects Using imagefilter( ): lighten picture just a little:
2.IMG_FILTER_COLORIZE
3.IMG_FILTER_EDGEDETECT and IMG_FILTER_EMBOSS filters
4.IMG_FILTER_GAUSSIAN_BLUR and IMG_FILTER_SELECTIVE_BLUR
5.IMG_FILTER_GRAYSCALE and IMG_FILTER_NEGATE
6.smooths the picture just a little