←back to thread

An SVG is all you need

(jon.recoil.org)
258 points sadiq | 2 comments | | HN request time: 0.409s | source
Show context
xxmarkuski ◴[] No.46237097[source]
I use ChatGPT to compress SVGs, in particular QR codes. Many QR code SVG generators produce inefficient SVGs, and conventional SVG compressors often lack the understanding required for some compression techniques. ChatGPT can replace alignment indicators with <use> elements.

Is there a way to embed the data encoded in the QR code directly within the image? This would allow the data to be parsed directly by the browser, eliminating the need for computer vision to decode it again. Going further, for web images QR codes could be efficiently encoded and rendered by the browser.

replies(3): >>46237251 #>>46237255 #>>46238035 #
1. paularmstrong ◴[] No.46238035[source]
> I use ChatGPT to compress SVGs, in particular QR codes

Why? svgomg.net exists, uses far fewer resources, and is going to give you much better results.

replies(1): >>46243223 #
2. OuterVale ◴[] No.46243223[source]
Heads up. The site you linked is just a wrapping of the original with adverts and tracking scripts. It isn't running the latest version either. Much better off using the creator's version.

https://jakearchibald.github.io/svgomg/