Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Perl Script - add text to an image
Name: Danny Date: September 17, 2002 at 10:05:08 Pacific OS: n/a CPU/Ram: n/a
Comment:
Does anyone have a perl script that automaticaly include text in a jpg image (or gif)?
I mean, the script will convert given text in image, then combine this image to the original image.
Name: SN Date: September 17, 2002 at 14:01:01 Pacific
Reply:
That would be a pretty involved perl script. More likely you want something that positions the graphic absolutely and writes text over it, which is pretty easily done using css. Good luck -SN
0
Response Number 2
Name: Tom Date: September 17, 2002 at 16:04:12 Pacific
Summary: You just can't add text to a jpg image. 1 - uncompress the image. 2 - to create the text image. 3 - Overlay text image over jpg image 4 - recompress to jpg. A Perl script calling other programs could....
Summary: #!/bin/ksh # add to text to end of a file using sed sed 's/$/Add Text to end"/g' myfile # using awk awk ' { print $0"Add Text to end" } ' myfile ...