[magick-users] PerlMagick Composite() won't work with Gradients on Win32

Walter Higgins walterh at rocketmail.com
Wed Sep 20 19:46:47 CDT 2006


Hi,

This is related to an earlier problem I reported with  compositing and gradients on 6.2.9 on Windows.

The following script takes two images and does a vertical blend from one image to the next, using the Composite method and a Gradient canvas.

It won't work with IM6.2.9 on Windows.

Does anyone know what extra commands/parameters I'll need to add to get this to work with 6.2.9 ?

Walter Higgins

==== script starts here ====

my $tile_aqua = new Image::Magick;
  my $tile_water = new Image::Magick;
  
  $tile_aqua->Read(filename=>"tile_aqua.jpg");
  $tile_water->Read(filename=>"tile_water.jpg");
  
  my $mask = new Image::Magick;
  
  $mask->Set(size=>"94x94");
  $mask->Read("gradient:");
  
  my $imres = $tile_aqua->Composite(image=>$tile_water,
                                                mask=>$mask);
  die $imres if ($imres);
  
  $imres = $tile_aqua->Write(filename=>"blended.jpg");
  die $imres if ($imres);

===== script ends here =====




More information about the Magick-users mailing list