X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=lib%2FBarcode.class.php;h=b4231e660bffe34e80671feb01882ae788c7cf9d;hb=382324d309a6b80a9d22270e016fb05cfa8d51b5;hp=72928257ebf7e916ca0f4f4cb4118db2ee093aee;hpb=81ab8aef27da2a93a06296fd3b80cdba3376d956;p=mirrors%2FSokoMan.git diff --git a/lib/Barcode.class.php b/lib/Barcode.class.php index 7292825..b4231e6 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 -colorspace gray -background white - $convert:-" : ''; + $convert = $convert ? " | convert - -crop 0x60+0+30\\! -background white -flatten $convert:-" : ''; return shell_exec("barcode -e $enctype -E -b $string$convert"); }