in reply to GD + layering text over existing image
As far as I can see, the only thing missing from your script is that you are creating a new image instead of loading an existing one. (Unsurprising I guess as it appears to be the code from the GD pod synopsis.)
If you replace my $im = new GD::Image(100,100); with
$im = GD::Image->new( $filename );
Provided that $filename contains the path and name of a image in any one of the formats GD supports (and that file is readable from the web server), then the rest of your code should work pretty much as it is, if you also change "Testing" for scalar localtime.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GD + layering text over existing image
by ultranerds (Hermit) on Nov 22, 2008 at 14:34 UTC | |
|
Re^2: GD + layering text over existing image
by Anonymous Monk on Aug 10, 2017 at 20:23 UTC | |
by BrowserUk (Patriarch) on Aug 10, 2017 at 20:29 UTC | |
by Anonymous Monk on Aug 11, 2017 at 05:17 UTC | |
by hippo (Archbishop) on Aug 11, 2017 at 08:51 UTC | |
by BrowserUk (Patriarch) on Oct 18, 2017 at 02:43 UTC | |
by 1nickt (Canon) on Oct 18, 2017 at 09:50 UTC |