From b0f54db30580238548ad6e15d5fe181d30598b02 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Fri, 14 Jun 2013 23:17:11 +0200 Subject: [PATCH] Oprava prevodu z PS do PNG pro novejsi verzi GNU barcode --- lib/Barcode.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.30.2