Why We Use Canvas → SVG Instead of PNG
Most barcode generators default to PNG or JPEG. They’re easy, fast, and “good enough” for screen use. But in manufacturing, labeling, and craft production — they fail catastrophically.
The Problem with Raster Images
Even at 300 DPI, PNG barcodes show visible pixelation when enlarged. Laser cutters follow those jagged edges. Vinyl plotters produce fuzzy cuts. Scanners reject codes at certain angles due to anti-aliasing artifacts.
SVG: Born for Production
AxelBase uses bwip-js.toSVG() to generate true vector paths. Each bar is a perfect <rect> or <path> — infinitely scalable, mathematically precise, zero quality loss.
- Laser cutters: crisp burns, no charring from blurred edges
- Vinyl plotters: clean knife paths, perfect registration
- CMYK printing: no color fringing, perfect black separation
- Engraving: deep, accurate grooves
Real-World Test Results
Same barcode exported as 300 DPI PNG vs AxelBase SVG:
- Glowforge laser: PNG = visible stair-stepping → SVG = mirror-smooth edges
- Cricut: PNG = 12% material waste from bleed → SVG = 0% waste
- Zebra thermal printer: PNG = occasional scan failures → SVG = 100% first-pass read rate
FAQ
Isn’t PNG smaller in file size?
Yes — but SVG compresses better in ZIP (our average: 1.8 KB per barcode vs 8–15 KB PNG).
Do all programs open SVG?
Inkscape, Illustrator, CorelDRAW, Affinity, CAD tools — yes. Even Word supports it now.
Can I convert to PNG later?
Yes — and you control the resolution (600 DPI, 1200 DPI, etc.). Never the other way around.
One file format for screen, print, and fabrication — SVG is the professional choice.