Comments (5)
I recommend you experiment with scale
to see how it correlates with the magnification factor used by ^BQ
. The height
and width
options simply change scaleY
and scaleX
, sometimes unpredictably.
from bwip-js.
@metafloor thanks for your reply.
Is it also possibile to render the qr code by handling custom dpi value manually?
For example I need to render the qrcode using a 600dpi value
from bwip-js.
Just multiply scale by a factor predefined for each dpi. For example, 2 for 200dpi, 3 for 300dpi, and 6 for 600dpi.
from bwip-js.
@metafloor So the value I set in the RenderOptions
object is scale: myScale * myDpiScale, right?
from bwip-js.
Have you worked with different dpi zpl printers? Typically, the zpl rendering engine does not scale for dpi. The scaling for dpi is done in the ZPL code - by the developer. Specifically, using ^BY
to control module width and for qrcode, the magnification factor in the ^BQ
command (which does have its defaults based on dpi).
from bwip-js.
Related Issues (20)
- Compatibility with IE11 HOT 6
- Property 'toCanvas' does not exist on type 'typeof BwipJs'. HOT 4
- Property 'toCanvas' does not exist on type 'typeof BwipJs' HOT 18
- nodejs 20.10.0 generate a different barcode compare when I use nodejs 20.9.0 HOT 3
- Datamatrix generation fo binary data after 3.4.0 has extra bytes HOT 3
- 4.2.0 will not generate the same barcode as 3.0.1 HOT 3
- please tag when doing a npm publish HOT 1
- Uncaught ReferenceError: BwipJs is not defined - Runtime error HOT 2
- New option showbearer via BWIP 2023-07-2 HOT 4
- backgroundcolor with # doesn't work or throw an error HOT 1
- extra `1px` @ bottom and/or left within `code128` [toSVG] HOT 6
- Height problem HOT 1
- Updated from v3.4 to v4.3.2 Bugs HOT 3
- Bwip-js and Cloudflare Workers - suggestion to include additional information to documentation HOT 1
- TypeError: (0 , _bwipJs.qrcode) is not a function HOT 10
- generate QRCode with Chinese character is not right HOT 3
- Can we show 2 strings one on top and other on bottom? HOT 1
- RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. HOT 1
- Does this library support react-native? HOT 2
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 bwip-js.