Comments (4)
only with monkey patching at current
Can you explain your use case?
from treepoem.
I am trying to make a small and narrow code39 barcode.
I am looking at https://github.com/bwipp/postscriptbarcode/wiki/Resizing-Symbols where it is 0 0
instead of 10 10
, but I think being able to modify the scale value might be more beneficial to me as that seems to at least help augment the shape I am looking for.
For example if you use the Online Generator https://the-burtons.xyz/barcode-generator/
Code39, Options: hidestars height=0.08
Scale 1 3
you get a barcode similiar to
If you have any other ideas on making it a small narrow barcode that would be great as well. Everything I have tried seems to result in a fairly large image.
Here is what my python looks like
barcode_image = treepoem.generate_barcode(
barcode_type='code39', # One of the BWIPP supported codes.
data=barcode,
options={
'hidestars': True,
'includecheck': True,
'includetext': False,
'includecheckintext': False,
'height': .08,
})
Thanks!
from treepoem.
I think it would work to add new arguments for these parameters, however I don't have time to write the code. I think we could call the arguments scale
and moveto
, as tuples of x, y coordinates, and set the defaults to the current values. Would you be able to write a PR, and check it works in your fork?
from treepoem.
This is no longer required after #499, which should always calculate the bounding box correctly.
from treepoem.
Related Issues (20)
- test failures on PowerPC ppc64le HOT 3
- Ghostscript v9.26 build fails on PowerPC ppc64le HOT 1
- code93 barcodes are apparently invalid HOT 5
- Azteccode generate fails with version 3.5.0 and specific payload HOT 3
- Not able to find barcode.ps' HOT 12
- How to add barcode margins? HOT 2
- How to get nice EAN13 and EAN14? HOT 2
- Ghostscript crashes when using round brackets in 'alttext' option value HOT 4
- Insert FCN1 character into Code128 string HOT 3
- Configurable gap size in Codabar HOT 1
- Byte string data HOT 3
- All generated barcodes have dark backgrounds HOT 3
- Create PD417 fails HOT 3
- Incompatibility with GS10 HOT 2
- Text under barcode is pixelated and although readable its not very clear HOT 1
- Unexpected aztec code size limitation HOT 3
- qrcode: Fix version information for version 33 model HOT 2
- EAN13 bbox out of bounds after bwipp change HOT 2
- Licensing question HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treepoem.