micjahn / ZXing.Net

.Net port of the original java-based barcode reader and generator library zxing
Apache License 2.0
2.71k stars 668 forks source link

Barcode Rendering Quality #5

Closed phuzi closed 7 years ago

phuzi commented 7 years ago

Although not broken the rendering of SVG QR Codes could be improved by setting the shape-rendering attribute to crispEdges on the generated SVG element to remove anti-aliasing artefacts.

The images below were rendered by Chrome Version 57.0.2987.98 (64-bit) with the results being replicated in Firefox 52.0 (64-bit)

Before: image

After: image

Doing the same with 1D barcodes e.g. EAN-13. Before: image

After: image

micjahn commented 7 years ago

fixed

phuzi commented 7 years ago

Wow, that was quick. Nice one