Dissolve works with cmd-line, but not via PerlMagick???
I have instaled the PerlMagick-6.24 version, and not run my perl code.
The image returned is equal of the original image.
$result = $image->Composite(compose=>'Dissolve', gravity=>'Center', image=>$comp, opacity=>50);
die $result if $result;
I am used
system ("/usr/bin/composite -dissolve ....")
It is poor.
Please help-me !!!
The image returned is equal of the original image.
$result = $image->Composite(compose=>'Dissolve', gravity=>'Center', image=>$comp, opacity=>50);
die $result if $result;
I am used
system ("/usr/bin/composite -dissolve ....")
It is poor.
Please help-me !!!
Re: using Dissolve with opacity in Perl Magick, bug workarou
versatilia wrote:magick wrote:The only solution we can offer is to upgrade your ImageMagick release. We believe Debian has a more recent release of ImageMagick in the unstable branch.
I'm using IM 6.2.5 on Fedora and had this same problem.
I found out that it's a "bug" with the opacity value - it takes the lowest 16 bits of the value and uses that, where 0 = transparent and 65535 = opaque.
Try this:
$img1->Composite( image=>$img2, compose=>'Dissolve', opacity=>16000 );if course if it then gets fixed all my code will break
Hey versatilia, now i obtain sucess in my code.
I my souce code now is:
Code: Select all
my $opacity_fake = 50;
$img1->Composite(image=>$img2, compose=>'Dissolve',opacity=>655.35*$opacity_fake);
Thanks !!!