I think I found another very good way with PHP!
Check this:
<?php $img = @imagecreatefromgif("php.gif"); if ($img) $img_height = imagesy($img); if ($img) $img_width = imagesx($img); // Create image instances $dest = imagecreatefromgif('php.gif'); $src = imagecreatefromgif('php.gif'); // Copy and merge - Gray = 20% imagecopymergegray($dest, $src, 0, 0, 0, 0, $img_width, $img_height, 20); // Output and free from memory header('Content-Type: image/gif'); imagegif($dest); imagedestroy($dest); imagedestroy($src); ?>
I remembered your question when I play with PHP GD lib.
Good luck tell me if it will be alright ...
Trufa
Trufa Oct. 16 '10 at 1:11 2010-10-16 01:11
source share