in reply to Adding text to an image for printing
As james28909 said the GD module can do what you need.
You can create a GD object from the file:
and then add the text$image = GD::Image->new($filename);
and save as png$image->string($font,$x,$y,$string,$color);
Regards$png_data = $image->png; open (OUTFILE,"imagewithtext.png"); binmode OUTFILE; print OUTFILE $png_data; close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding text to an image for printing
by tel2 (Pilgrim) on Nov 30, 2014 at 02:30 UTC | |
by pme (Monsignor) on Nov 30, 2014 at 08:36 UTC | |
by tel2 (Pilgrim) on Nov 30, 2014 at 20:35 UTC | |
by pme (Monsignor) on Dec 04, 2014 at 07:24 UTC | |
by RonW (Parson) on Dec 01, 2014 at 22:45 UTC | |
by tel2 (Pilgrim) on Dec 01, 2014 at 23:43 UTC |