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.
What is the equivalent of this command line?
Re: What is the equivalent of this command line?
I'm having the same issue here.
The commandline:
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?
The commandline:
Perl:convert -font Arial.ttf -fill transparent -stroke red -strokewidth 1 -size 160x label:'FooBar' 'foorbar.jpg' works fine.
I can not set the strokewidth and stroke is not recognized.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 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?