From: Thomas Mudrunka Date: Fri, 14 Jun 2013 21:17:11 +0000 (+0200) Subject: Oprava prevodu z PS do PNG pro novejsi verzi GNU barcode X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=b0f54db30580238548ad6e15d5fe181d30598b02;p=mirrors%2FSokoMan.git Oprava prevodu z PS do PNG pro novejsi verzi GNU barcode --- 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"); }