Increases DPI of barcode for small lables (#9344)

solves issue #9293
This commit is contained in:
AlexanderWPapyrus 2021-04-06 04:33:10 +02:00 committed by GitHub
parent 90a24539b0
commit a1f9642a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -484,7 +484,7 @@ class AssetsController extends Controller
return response()->file($barcode_file, $header); return response()->file($barcode_file, $header);
} else { } else {
// Calculate barcode width in pixel based on label width (inch) // Calculate barcode width in pixel based on label width (inch)
$barcode_width = ($settings->labels_width - $settings->labels_display_sgutter) * 96.000000000001; $barcode_width = ($settings->labels_width - $settings->labels_display_sgutter) * 200.000000000001;
$barcode = new \Com\Tecnick\Barcode\Barcode(); $barcode = new \Com\Tecnick\Barcode\Barcode();
try { try {