qrdx 0.0.47 and @qrdx/cli 0.0.5
The first library and CLI release since March: new patterns, eyes and frames, Logo QR and Image QR art, print-ready files and a scan score.
- Developers
- CLI
New styles
- 14 body patterns, including
liquid,classy,mosaic,random-dots,heartandstar.liquidandclassyjoin neighbouring modules into one smooth shape. - 9 eye frames and 13 eye centres, such as
leaf,drop,squircle,shieldandflower.leaf,dropandpetaleyes turn to face their corner of the code. - 20 call-to-action frames with the
frameoption: banners, speech bubbles, a polaroid, a phone, a ticket, a menu card and more. Set the label, a second label and the label size. - See every option drawn live at qrdx.dev/docs/styles.
Colors and fit
- Per-eye colors:
eyeColorsgives each corner eye its own outer and inner color or gradient. - Module scale:
moduleScale(0.5 to 1) shrinks the modules for a spaced-out look. Each pattern stops at the smallest size that still scans. - Auto error level:
autoLevelraises the level to H when a logo covers more than 7% of the code. - Logo padding:
imageSettings.paddingadds clear space around a logo. bgColor="transparent"leaves the background empty in PNG, SVG, PDF and EPS.
Logo QR and Image QR
The art option blends a logo or photo into a real, scannable code. It is vector output with no AI. See Art QR.
- Logo QR has two looks:
blendtraces the logo into crisp shapes under a fine dot screen, andbadgeputs the logo on a plate in the middle of a code tinted with its colors. - Image QR shows a photo in full color (
color) or as a black-and-white halftone (mono). matchEyescolors the corner eyes from the logo.
Print and export
- EPS export for print shops and design tools.
- Print-ready PDF, SVG and EPS at an exact physical size, with bleed, crop marks and CMYK colors.
- Linear and radial gradients stay smooth in PDF and EPS (native vector shadings, in CMYK too) instead of printing as their first color.
Will it scan?
getScanScoreestimates how reliably a design scans, andgetImageScanScorechecks an image you already have.getStylePairRiskwarns about eye and pattern pairs that some scanners struggle with.
Retired styles
curly eyes and diamond, star and banner eye centres are no longer offered, because some phone scanners can't read them. Saved designs that use them still render, but the CLI no longer accepts them.
Upgrading from 0.0.46
QRCodeno longer adds a logo unless you passlogo.reactandreact-domare now peer dependencies. PDF export needsjspdf, which you install yourself, andqrdxno longer installs sharp.QRCodeSVGandQRCodework in React Server Components.- The
qrdxcommand moved to its own package: runnpx @qrdx/cli generate.
@qrdx/cli 0.0.5
- Every new pattern, eye, eye centre and frame. Add a frame with
--frame,--frame-text,--frame-colorand--frame-text-color. - EPS output:
-o qr.eps, or--format eps. - Logos are drawn into PNG output.
- Clear errors for bad flag values, listing the accepted ones.
- It installs without sharp where your platform doesn't support it. SVG and EPS still work.