The current workflow looks like this:
Code: Select all
...
my $newimageData = MIME::Base64::decode($aPNG);
#---->Where transparency needs to be removed
my $newmember = $zip->addString( $newimageData, $pathInZip );
....
Code: Select all
...
my $newimageData = MIME::Base64::decode($aPNG);
#---->Where transparency needs to be removed
my $newmember = $zip->addString( $newimageData, $pathInZip );
....
Code: Select all
open FH, '<', \$content;
my $numRead = $magick->Read(file=>\*FH);
Code: Select all
$magick->Read(magick=>'JPEG', file=>\*FH);
Code: Select all
use Image::Magick;
local $/=undef;
open IMAGE, "logo.png" or die "Couldn't open file: $!";
binmode IMAGE;
$logo = <IMAGE>;
close IMAGE;
$image=Image::Magick->new();
$image->Read(blob=>$logo);
$image->Display();