// resturn array(255,0,0) tulipIP::colorize($copy, $color); tulipIP::saveImage($dest, $copy, $mime, 'Colorize-filter'); imagedestroy($copy); // 7 - Gamma Correction where correction level in range(0.01,4.99) $copy = tulipIP::gdClone($image); tulipIP::gamma($copy, 0.4); tulipIP::saveImage($dest, $copy, $mime, 'Gamma-Correction'); imagedestroy($copy); /** * 8 - Edge Filter * Imporatnt : This method require PHP to be compiled with the * =========== bundled version of the GD library. */ $copy = tulipIP::gdClone($image); tulipIP::edge($copy); tulipIP::saveImage($dest, $copy, $mime, 'Edge-filter'); imagedestroy($copy); /* * 9 - Emboss Filter * Imporatnt : This method require PHP to be compiled with the * =========== bundled version of the GD library. */ $copy = tulipIP::gdClone($image); $offset = 1; // color offset in range(1,100) where 1= default $normalization = 127; // color normalization in range (0,360) where 172= default tulipIP::emboss($copy, $offset, $normalization); tulipIP::saveImage($dest, $copy, $mime, 'Emboss-filter'); imagedestroy($copy);