write on mug

add name on lovely coffee gif mug for your friend


[insert_php]
include ‘text.php’;
include ‘ads1.php’;
include ‘giffile.php’;

$image = imagecreatefrompng(‘template-gif/mug-smok-hyt-01.png’);
imagealphablending($image, false);
imagesavealpha($image, true);
$facebook_white = imagecolorallocate($image, 248,204,56); // Create blue color
imagealphablending($image, true); //bring back alpha blending for transperent font
imagettftext($image, 23, 0, 190, 40, $facebook_white , $font2, $tx1);
ob_start();
imagegif($image);
$frames[]=ob_get_contents();
$framed[]=30; // Delay in the animation.
ob_end_clean();

$image = imagecreatefrompng(‘template-gif/mug-smok-hyt-02.png’);
imagealphablending($image, false);
imagesavealpha($image, true);
$facebook_white = imagecolorallocate($image, 247,201,48); // Create blue color
imagealphablending($image, true); //bring back alpha blending for transperent font
imagettftext($image, 23, 0, 190,40, $facebook_white , $font2, $tx1);
ob_start();
imagegif($image);
$frames[]=ob_get_contents();
$framed[]=30; // Delay in the animation.
ob_end_clean();

$image = imagecreatefrompng(‘template-gif/mug-smok-hyt-03.png’);
imagealphablending($image, false);
imagesavealpha($image, true);
$facebook_white = imagecolorallocate($image, 203,162,23); // Create blue color
imagealphablending($image, true); //bring back alpha blending for transperent font
imagettftext($image, 23, 0, 190,40, $facebook_white , $font2, $tx1);
ob_start();
imagegif($image);
$frames[]=ob_get_contents();
$framed[]=30; // Delay in the animation.
ob_end_clean();

$gif = new GIFEncoder($frames,$framed,0,2,0,0,0,’bin’);
$fp = fopen( “giftmp/$fn.gif”, ‘w’ );
fwrite($fp, $gif->GetAnimation());
fclose($fp);
imagedestroy($image);
[/insert_php]




[insert_php]
include ‘1name.php’ ;
include ‘gifvip.php’ ;
[/insert_php]

I really like what you guys tend to be up too. This kind of clever work and reporting vwikien.com!

Related Articles

Close