Basic functionality
PHP Code:
<?php
$myImage = imagecreatefromjpeg('jpgFile.jpg');
header("Content-type: image/jpeg");
imagejpeg($myImage);
imagedestroy($myImage);
?>
Combine it with other php gd functions. Probably the ones you'll need
[ Refrence ]
imagecreate()
imagecopymerge()
imagecreatefrompng() or imagecreatefromgif() or whichever format you're using
Basic idea:
Get each character from the query string, add up each images width to find total image size. If image a = 30pixels, b=200pixels, then ?string=aba would be 260pixels.
Use imagecreate to make a 260pixel image. Take image a copymerge it onto the background image from imagecreate, copymerge image b 30 pixels to the right of that, then copymerge image a again 230 pixels from origin of the background image.
Hope I didn't get too complex..