leighsharpe has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use strict; use warnings; use Image::Magick; my($image, $x); $image = Image::Magick->new; $x=$image->Read('SV000360.JPG'); warn "$x" if "$x"; my($xSize, $ySize) = $image->Get('width', 'height'); print "Width: $xSize\t Height: $ySize\n"; my $text = chr(hex (0xa9)); $text.="© Some person."; my $yPos=$ySize-50; print "Text:$text\n"; $x=$image->Annotate(font=>"/usr/share/fonts/msttcorefonts/verdana.ttf" +, pointsize=>40, weight=>10, fill=>'yellow', text=>"$text",strokewidt +h=>10, undercolor=>'green', x=>50, y=>$yPos); warn "$x" if "$x"; #$image->Draw(stroke=>'red', primitive=>'rectangle', points=>'20,20 20 +0,200', x=>100, y=>100); $x=$image->Write('SV000360_II.JPG'); warn "$x" if "$x";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding Copyright (C) symbol to an image using Image::Magick
by Joost (Canon) on Dec 03, 2006 at 13:25 UTC | |
by leighsharpe (Monk) on Dec 04, 2006 at 11:02 UTC | |
|
Re: Adding Copyright (C) symbol to an image using Image::Magick
by shmem (Chancellor) on Dec 03, 2006 at 12:37 UTC | |
|
Re: Adding Copyright (C) symbol to an image using Image::Magick
by MaxKlokan (Monk) on Dec 04, 2006 at 11:50 UTC |