my $qrcode_modulesize = $input->param('modulesize') || "5"; # 1+
my $image;
if ($type eq 'Code39'){
$barcode = '*' . $barcode unless $barcode =~ /^\*/;
$barcode = $barcode . '*' unless $barcode =~ /\*$/;
}
eval {
if( $type eq "QRcode" ){
$image = GD::Barcode->new('QRcode', $barcode, { Ecc => "M", ModuleSize => $qrcode_modulesize } )->plot->png();
-