1b.app
Link copied -

How to change the height of the barcode in the price tag template?

Есть необходимость печати ценников, документов и других возможных документов компании?
С компонентом "Документы" это возможно! - вам нужно просто установить данный компонент (доступен для установки бесплатно! Установить компонент
How to change the height of the barcode in the price tag template?
Now I'm setting up the template and it turns out to change the size of the barcode only by changing its width. It doesn't respond to height settings.
Is there a way to set its height?
the barcode is very high. Takes up a lot of space.
Original question is available on version: ru

Answers:

How to generally resize svg barcode?
Whatever I do, the size is less than width="318px" height="150px" can't be done
03.06.2022, 17:40
Original comment available on version: ru

Hello!
Most likely, you added some tag in the barcode itself (when you created the template), which now interferes or blocks the height change.
If you can fix the html code of the barcode template itself, go to the template and click on the source code.
Or you can contact integrators, they will be able to help you in this matter https://1b.app/en/partner/search/?tags[]=3
03.06.2022, 17:43
Original comment available on version: ru


Luts Bogdan Alexandrovich
OneBox CORP wrote:
Hello!
Most likely, you added some tag in the barcode itself (when you created the template), which now interferes or blocks the height change.
If you can fix the html code of the barcode template itself, go to the template and click on the source code.
Or you can contact integrators, they will be able to help you in this matter https://1b.app/en/partner/search/?tags[]=3

Here is the code.
And the code from view
03.06.2022, 17:52
Original comment available on version: ru

To resize an image, you can add the following code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
img {
width: 140%
height: 10%;
align:center;
}
</style>
</head>
at the beginning of the code, replacing your tags with these.
And with the width and height parameters you change the percentage.
03.06.2022, 18:27
Original comment available on version: ru


Luts Bogdan Alexandrovich
OneBox CORP wrote:
To resize an image, you can add the following code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
img {
width: 140%
height: 10%;
align:center;
}
</style>
</head>
at the beginning of the code, replacing your tags with these.
And with the width and height parameters you change the percentage.

This is for changing the image, the variable is {barcodeimageinternalean13}
I already did, but in this case, the quality of barcode and font printing is poor.
I want to use {barcodeimageinternal13svg} so that the barcode is in svg format
In this case, it is not possible to change the size through the style.
I tried to prescribe through styles, but it does not work.
03.06.2022, 19:04
Original comment available on version: ru

The topic is relevant.
I ask One Box employees to give advice.
The barcode in png is printed in poor quality.
In other topics they write that you need to use the svg format, but it can not be reduced to the desired size.
It doesn't fit on the label.
Please tell me how to reduce it to the right size
06.06.2022, 12:36
Original comment available on version: ru

Ярина
Personal license
You don’t change, but you need to cut it, because the wines will increase in proportion.
try writing in the style of the element itself, it may have the highest priority:
axis butt of heavily cropped barcode:
<div style="width: 50%; height: 15px; overflow: hidden; margin: 0 auto;">
<img src="/media//productbarcode/product40502internal.png?1654513096" style="width: 100%;">
</div>
06.06.2022, 14:03
Original comment available on version: ru


Yarina
integrator wrote:
You don’t change, but you need to cut it, because the wines will increase in proportion.
try writing in the style of the element itself, it may have the highest priority:
axis butt of heavily cropped barcode:
<div style="width: 50%; height: 15px; overflow: hidden; margin: 0 auto;">
<img src="/media//productbarcode/product40502internal.png?1654513096" style="width: 100%;">
</div>


Does the scanner read the cut barcode?
As long as you go out, cut only the bottom, the top is left without a code.
09.06.2022, 16:26
Original comment available on version: ru

Ярина
Personal license

Andrey wrote:
Does the scanner read the cut barcode?

I think it’s enough to finish the height of 1 cm, so that the scanner can read it instantly. Vіn yet, not the numbers are read, but the spouses.
a better try on a real scanner.
09.06.2022, 16:34
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment