Jump to content

Dynamic Image Question


Patriot

Recommended Posts

The following works fine if I go to that php page, but I was wondering how I can go to an image file and see that, such as banner.png

==============================================================

<?php

/*

Now for the GD stuff, for ease of use lets create

the image from a background image.

*/

 

$banner = imagecreatefrompng("sigbackground.png");

 

/*

Lets set the colours, the colour $line is used to generate lines.

Using a blue misty colours. The colour codes are in RGB

*/

 

$goal = $_GET['g'];

$black = imagecolorallocate($banner, 0, 0, 0);

 

imagestring($banner, 5, 20, 10, "Current Freebie Goal: " . $goal, $black);

imagestring($banner, 5, 20, 20, "sup", $black);

 

/*

Output the image

*/

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

imagepng($banner);

?>

Link to comment
https://forums.phpfreaks.com/topic/91459-dynamic-image-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.