aruZeta / QRgen

A QR code generation library.
https://aruzeta.github.io/QRgen/
MIT License
103 stars 8 forks source link

Create images png/jpg #21

Closed enthus1ast closed 1 year ago

enthus1ast commented 2 years ago

Printing to terminal and svg are good options already, but sometimes it would be good to generate a png/jpg. Maybe you could leverage pixie for this.

aruZeta commented 2 years ago

Yes, it's planned but haven't looked into it for the moment.

enthus1ast commented 2 years ago

I've written a simple pixie renderer: https://github.com/enthus1ast/QRgen/blob/pixie/tests/pixie/renderer.nim

hamidb80 commented 2 years ago

IMO it's better to have svg, you can always convert it to a png/jpg with your favorite library/app. Like pixie/imagemagick.

Managing dependencies is not easy specially in Nim when you hit conflicts

aruZeta commented 2 years ago

Rendering to png/jpg should be opt in, and a benefit to directly render to it is that it will be much faster than rendering to SVG and then converting it to png/jpg.

aruZeta commented 1 year ago

Closed by #36