Skip to content

Instantly share code, notes, and snippets.

@shunn
Created June 19, 2019 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shunn/abe04fe0c50f967d4fcda86723a1c949 to your computer and use it in GitHub Desktop.
Save shunn/abe04fe0c50f967d4fcda86723a1c949 to your computer and use it in GitHub Desktop.
Name Tag Generator Part 6
# Create our shadow image
my $shadow = Image::Magick->new;
$shadow->Set( size => '503x339' );
$shadow->ReadImage( 'canvas:black' );
$shadow->Annotate(
font => $font,
pointsize => $size,
fill => 'white',
text => $name,
x => $x + $offsetx,
y => $y + $offsety,
antialias => true,
);
$shadow->Blur(
radius => $radius,
sigma => $sigma,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment