Page 1 of 1

What is the equivalent of this command line?

Posted: 2009-02-14T17:00:03-07:00
by Sprille
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.

Re: What is the equivalent of this command line?

Posted: 2013-06-06T02:32:31-07:00
by Gerben
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.
Perl:
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
$model->ReadImage('label:'.'FooBar');
$model->Write('foobar.jpg');
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?