File: shadow-text.pl

package info (click to toggle)
imagemagick 8%3A6.7.7.10-5%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 67,860 kB
  • sloc: ansic: 306,159; cpp: 18,543; sh: 12,071; xml: 8,078; perl: 4,985; makefile: 2,454; tcl: 459; pascal: 125
file content (15 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
#
# Make simple text with a shadow.
#
use Image::Magick;

$image=Image::Magick->new(size=>'500x120');
$image->Read('xc:white');
$image->Annotate(font=>'Generic.ttf',fill=>'rgba(100,100,100,0.8)',
  pointsize=>60, text=>'Works like magick!',geometry=>'+30+90');
$image->Blur('0x1');
$image->Annotate(font=>'Generic.ttf',fill=>'red',stroke=>'blue',pointsize=>60,
  text=>'Works like magick!',geometry=>'+26+86');
$image->Write('shadow.gif');
$image->Write('win:');