What is the equivalent of this command line?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply

What is the equivalent of this command line?

Post by Sprille » 2009-02-14T17:00:03-07:00

Trying to get this command converted into perl, and im failing :?

Im trying to get an image from text without reading any file in, i just need a output from text.

commandline goes like this :

convert -background none -fill DodgerBlue -stroke black -font Candice -pointsize 72 label:"Hello World" -trim +repage ( +clone -alpha extract -blur 0x8 -shade 110x30 -normalize -function polynomial 3.5,-5.05,2.05,0.3 -alpha On ) -compose HardLight -composite aqua_font.png

Any help would be apriciated, thanks.

Posts: 1
Joined: 2013-06-06T02:11:24-07:00
Authentication code: 6789

Re: What is the equivalent of this command line?

Post by Gerben » 2013-06-06T02:32:31-07:00

I'm having the same issue here.
The commandline:
convert -font Arial.ttf -fill transparent -stroke red -strokewidth 1 -size 160x label:'FooBar' 'foorbar.jpg' works fine.
my $model = Image::Magick->new(size => '600x');
$model->Set( background => 'rgba(0,0,0,0)' );
$model->Set( stroke => 'red'); # does not work but does not give error either
I can not set the strokewidth and stroke is not recognized.
I use a rather old version of ImageMagick 6.2.8 (centos5.9)

Anybody sees a solution here for the same result where the placed text has a stroke and fits the image size?

Post Reply