Kcko
5/30/2016 - 1:39 PM

Recolor image From http://stackoverflow.com/questions/12178874/replace-a-color-with-another-in-an-image-with-php

<?php
$imgname = "1.gif";
$im = imagecreatefromgif ($imgname);
$index = imagecolorexact ($im,0,128,0);
imagecolorset($im,$index,240,255,0);
$imgname = "result.gif";
imagegif($im,$imgname);
?>
<img src="result.gif">