Deconstructing "Soft Edges"

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
ggking7
Posts: 21
Joined: 2010-11-15T13:19:04-07:00
Authentication code: 8675308

Deconstructing "Soft Edges"

Post 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%');
ggking7
Posts: 21
Joined: 2010-11-15T13:19:04-07:00
Authentication code: 8675308

Re: Deconstructing "Soft Edges"

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Deconstructing "Soft Edges"

Post by anthony »

It should work. What are you saving the image as?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply