Version: ImageMagick 7.0.5-3 Q16 x86_64 2017-03-16 HDR
I'm still having issues getting perl magick to switch off the compose:clamp option.
I've tried a number of options, to no avail.
Using $image->Set(option=>"compose:clamp=off") should, I think, work since that option in PM calls DefineImageOption.
Appropriate code in PM is:
Code: Select all
case 'o':
{
if (LocaleCompare(attribute,"option") == 0)
{
if (info)
DefineImageOption(info->image_info,SvPV(sval,na));
break;
}
Code: Select all
my $image_a = Image::Magick->new;
$image_a->Read('r.png');
my $image_b = $image_a->Clone();
$image_b->Color(color=>"grey");
$image_a->Set(option=>"compose:clamp=off");
#$image_a->Set(option=>"compose:clamp = off");
#$image_a->Set(option=>"option:compose:clamp=off");
#$image_a->Set("compose:clamp"=>"off");
#$image_a->Set("option:compose:clamp"=>"off");
#$image_a->Set("option:compose:clamp=off");
#$image_a->Set("compose:clamp=off");
$image_a->Composite(image=>$image_b, compose=>"Divide");
$image_a->Identify();
Mike