I am trying to create a Security Image from a text using the perl module GD:SecurityImage with the following object:
my $image = GD::SecurityImage->new(
width => 220,
height => 60,
lines => 5,
scramble => 1,
angle => 45,
gd_font => 'giant',
);
$image->create( normal => 'circle' );
$image->particle(30, 70);
But the text in resulted image doesn’t have the text angled at 45 Degrees rather its random.
Also if i make scramble = 0 and have angle = 45, the text doesn’t rotate at that angle, text is just default in the image as seen
in the attach screen.
Please help me out, what am i doing wrong here?.
NOTE: Image is with scramble = 0;
Please note that you must have Math::Trig to rotate with GD, otherwise you get no rotation. You don’t need that with the ImageMagick backend – try that. (And use TTF :))