X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=lib%2FBarcode.class.php;h=b75f2ba9a91031812f65813c5eab839117e87133;hb=b0f54db30580238548ad6e15d5fe181d30598b02;hp=f65df4f0e8fc5948f82e87d8315fc54d4f5276a1;hpb=51d3b8cf0914068fe60538aea0471d1ec623dd1e;p=mirrors%2FSokoMan.git diff --git a/lib/Barcode.class.php b/lib/Barcode.class.php index f65df4f..b75f2ba 100755 --- a/lib/Barcode.class.php +++ b/lib/Barcode.class.php @@ -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"); }