diff --git a/svc/barcode b/svc/barcode index bd9c8203bc..e51a29f7f6 100755 --- a/svc/barcode +++ b/svc/barcode @@ -106,6 +106,11 @@ my $height = $input->param('height') || 50; 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();