print $image->Get('depth')."\n"; $image->Write($tempfolder.'cardout.png', depth=>'32');