Oprava prevodu z PS do PNG pro novejsi verzi GNU barcode
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 14 Jun 2013 21:17:11 +0000 (23:17 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 14 Jun 2013 21:17:11 +0000 (23:17 +0200)
lib/Barcode.class.php

index f65df4f0e8fc5948f82e87d8315fc54d4f5276a1..b75f2ba9a91031812f65813c5eab839117e87133 100755 (executable)
@@ -37,7 +37,7 @@ class Barcode {
        static function generate_barcode($string='EXAMPLE', $convert='png', $enctype='code128b') {
                $string = escapeshellarg($string);
                $enctype = escapeshellarg($enctype);
-               $convert = $convert ? " | convert - -crop 0x60+0+30\\! -background white -flatten $convert:-" : '';
+               $convert = $convert ? " | convert - -crop 0x60+0+30\\! -background none -flatten $convert:-" : '';
                return shell_exec("barcode -e $enctype -E -b $string$convert");
        }
 
This page took 0.164623 seconds and 4 git commands to generate.