2014 February

Sepia effect on an image using PHP

Below is the code for converting a image using Sepia Effect <?php$img = imagecreatefrompng(‘images.png’);imagefilter($img,IMG_FILTER_GRAYSCALE);imagefilter($img,IMG_FILTER_COLORIZE,100,50,0);imagepng($img,’sepia.png’);imagedestroy($img);?> Here images.png is original image and…

Negative effect on an image using PHP

Below is the code for converting a image to Negative <?php$img = imagecreatefrompng(‘images.png’);imagefilter($img,IMG_FILTER_NEGATE);imagepng($img,’negative.png’);imagedestroy($img);?> Here images.png is original image and negative.png…