snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.05k stars 3.18k forks source link

1D Barcode alignment does not fit within constraints of label size #8168

Closed koolk closed 1 year ago

koolk commented 4 years ago

Expected Behavior - The barcode should fit within set label parameters

Actual Behavior - The barcode is shifted towards the bottom of the label not fitting correctly. Also the 1D barcode disappears when attempting to print. Verified this with multiple browsers and label sizes

Screen Shot 2020-06-22 at 9 02 12 PM


Please confirm you have done the following before posting your bug report:

TheMrDrProf commented 4 years ago

Can also verify this using the both the Docker container from Snipe and from LinuxServer.io. On version 4.9.0, label generation worked just fine. Since update to 4.9.3, 1D barcode is cutoff on the bottom using the same settings. I am experimenting with some code changes to see if I can reach a resolution. If I can, I'll submit a PR.

GustelDE commented 4 years ago

Same here, the Barcode is cut off since V4.9.3. With V4.9.2 everything was ok.

bcourtade commented 4 years ago

We have the same issue, settings work on 4.9.2, barcode is pushed off the bottom on 4.9.3.

Managed to tweak the settings to get the barcode to show but it was small/squished and wouldn't scan.

Ended up reverting back to 4.9.2 due to a lot of new assets coming in the door and I need to print labels. I could upgrade again next week to do more testing.

Using 30336 labels which are 1"x2 1/8" on a DYMO LabelWriter 450. Labels per page: 1 Label font size: 10pt Label dimensions (inches): 2.12500w x 1.00000h Label spacing (inches): 0.00000h x 0.00000v Page margins (inches): 0.12500 top 0.00000 right 0.00000 bottom 0.00000 left Page dimensions (inches): 2.12500w x 1.00000h

GustelDE commented 4 years ago

Hi, with Version 4.9.4 this issuse is still present:

single line of text, 1D code is displayed correctly: hc_003

2 lines of text, the 1D code moves down: hc_004

Please note the space between the bottom of the QR code and the top of the 1D code. This space sould be fixed and not move in accordance the text on the right.

stale[bot] commented 4 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

koolk commented 4 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

YES STILL RELEVANT!!!

stale[bot] commented 4 years ago

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] commented 3 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

bcourtade commented 3 years ago

Yes, it appears to still be an issue on 5.0.12

stale[bot] commented 3 years ago

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

Godmartinz commented 1 year ago

If this is an issue still for anyone else: May I recommend using the Custom CSS available in Settings->Branding? There is a text area you can apply values that would work best for you:

image

Copy & Paste this into Custom CSS to adjust the value for the Y axis of the barcode (Default settings reflected below):

img.barcode {
        margin-top:-7px;
    }

If you would like to adjust your QR code ​(​Default settings reflected below):

img.qr_img {

    width: 120.79%;
    height: 120.79%;
    margin-top: -6.9%;
    margin-left: -6.9%;
    padding-bottom: .04in;
}

I hope adjusting these to your liking will solve your issue.