in reply to Imager transparent background instead of black

I'd use Imager::Fill.
#!/usr/bin/perl use strict; use warnings; use Imager; use Imager::Fill; my $fill = Imager::Fill->new(type => "opacity", other => $fill, opacity => 0.25);
where $fill is The Imager::Fill object you want to modify, and the default opacity is 0.5. You can modify the opacity to get the level of tranparency that you want.