Fluffy Cat Image

Image with Text

Select Width Change (0 = no change, 5 = Max Change)

Width Determination:

0   1   2   3   4   5  





SLAVE CODE FOLLOWS

<?php
$wide 
$_GET['sk'];

$image imagecreatefromjpeg('fluffycat.jpg');

$width_orig imagesx($image);
$height imagesy($image);

$width $width_orig - ($width_orig $wide .05);

$new_image imagecreatetruecolor($width$height);

imagecopyresampled($new_image$image0000$width$height$width_orig$height);

// set the header for the new image
header("Content-type: image/jpeg");
imagejpeg($new_image);
imagedestroy($new_image);

?>


SLAVE CODE FOLLOWS

<?php

$text 
"Fluffy Cat";
$image imagecreatefromjpeg("fluffycat.jpg");

$width imagesx($image);
$height imagesy($image);

$font "arial.ttf";

$black imagecolorallocate($image240240240);

imagettftext($image20010$height 4$black$font$text);

header("Content-type: image/png");

// display the image
imagepng($image);

// destroy the image (i.e., release memory)
imagedestroy ($image);
?>