Page 1 of 1

Deconstructing "Soft Edges"

Posted: 2011-01-10T17:10:00-07:00
by ggking7
I'm trying to deconstruct this line from the examples so I can convert it to Perlmagick:

convert thumbnail.gif -alpha set -virtual-pixel transparent -channel A -blur 0x8 -level 50%,100% +channel soft_edge.png

Can someone tell me the sequence of events? I have these Perlmagick commands:

$image->Set(alpha=>'Set');
$image->Set(virtual-pixel=>'Transparent');
$image->Blur(radius=>'0x8');
$image->Level(levels=>'50%,100%');

Re: Deconstructing "Soft Edges"

Posted: 2011-01-11T19:46:00-07:00
by ggking7
This should work but it just doesn't:

$image->Set(alpha=>'Set');
$image->Set('virtual-pixel'=>'Transparent');
$image->Blur(geometry=>'0x8',channel=>'A');
$image->Level(levels=>'50%,100%',channel=>'A');

I'm trying to replicate this:

convert thumbnail.gif -alpha set -virtual-pixel transparent -channel A -blur 0x8 -level 50%,100% +channel soft_edge.png

Anybody? Does Perlmagick lack this functionality?

Re: Deconstructing "Soft Edges"

Posted: 2011-02-02T01:17:01-07:00
by anthony
It should work. What are you saving the image as?