-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
GS1 North America Coupon limited scaling options #110
Comments
Very odd behavior. The bar code scales correctly i.e. width is x2 and height is x1.5, but the location of the text does not change between Going to require some low-level debugging of the cross-compiled postscript to understand where the coordinate mismatch is coming. That will take some time and unfortunately, I am out of town until Tuesday. Should have it resolved in a day or two after that. |
Hi @metafloor. I think you're doing something special with the scale options as the behaviour of BWIPP is different - but broken in another way. (I've only recently added text support to the matrix renderer which reacts to the height option by scaling, thereby stretching the text.) Nevertheless @Jaimeman84, are you really looking at scaling the image (resulting in stretched text?) or are you just wanting to amend the height of the bars? If the latter then you probably want the barxmult option, e.g. barxmult=17. This isn't documented because when I last checked it was a violation of the GS1 DataBar specification. |
Hi @terryburton, you are correct. The bwip-js |
@terryburton we want to modify the height of the bar without stretching the text so What type of violation are you referring to?
Thank you for your prompt response! |
The relevant standards specify that the height of the bars shall be 34X. North American Coupon Application Guideline:
ISO/IEC 24724 GS1 DataBar Expanded specification:
I was unable to find any application specific guidance that amends these constraints when I last looked. |
Terry, Thank you so much the information. It has been very helpful! |
@metafloor Is the performance hit mostly with your graphical rendition or does my tracing code sting also? There is theoretically a simpler version of my code that does not require an intermediate matrix to track enclosed regions but I ran out of time getting it to work so committed what I had. "I didn't have time to write a short letter, so I wrote a long one instead." ― Mark Twain |
@terryburton: It is mainly the graphics, especially the |
On Thu, 12 Jul 2018 at 16:52, Jaimeman84 ***@***.***> wrote:
Another quick question - Do you know what this warning mean? Is this due
to the spec you sent?
A hard fail that appears irrespective of grading scores is usually the
result of breaching a pass/fail criterion such as size constraints.
|
Bug turned out to be a rounding-down factor multiplied by the number of pixels in the |
@metafloor Just FYI since I know this isn't the blocking factor, the aforementioned improvement was released in 2019-08-03:
The kind of commit I like :-) |
Hello,
We are working with GS1 North America Coupon and we need to scale down scaleY somewhere between 1 and 2 but it is not working as expected or as we think it should work. Does scaleX and scaleY take decimals?
Based on the behavior that we see, scaleY=1.5 does not increase the size of the bars/rows, but instead, it increases the padding between the text and the barcode. Could you please look into it or tell us if we are missing something? Refer to the image below...
Thank you in advance!
The text was updated successfully, but these errors were encountered: