help with transparency
Posted: 2014-09-09T07:38:15-07:00
I'm building up an image that consists of a background along with several photos arranged on top. I am getting the background with:
$imgfile = "background.jpg";
($width, $height, $size, $format) = $image->Ping($imgfile);
print "$width x $height, size = $size, format = $format\n";
$image->ReadImage($imgfile);
$image->Rotate(-90);
$image->Resize(width=>$page_w, height=>$page_h);
and then at the very end of my program:
$image->Composite(image=>$appended,compose=>'over');
before writing it out.
What I'd like is to make my background image partially transparent with white behind it. I'm having troubles understanding how this is done with perl magick.
Any suggestions?
Thanks
-Dan
$imgfile = "background.jpg";
($width, $height, $size, $format) = $image->Ping($imgfile);
print "$width x $height, size = $size, format = $format\n";
$image->ReadImage($imgfile);
$image->Rotate(-90);
$image->Resize(width=>$page_w, height=>$page_h);
and then at the very end of my program:
$image->Composite(image=>$appended,compose=>'over');
before writing it out.
What I'd like is to make my background image partially transparent with white behind it. I'm having troubles understanding how this is done with perl magick.
Any suggestions?
Thanks
-Dan