sz3 / libcimbar

Optimized implementation for color-icon-matrix barcodes
https://cimbar.org
Mozilla Public License 2.0
3.77k stars 265 forks source link

maybe webApp can output gif to share? #110

Open bbyyxx2 opened 3 days ago

bbyyxx2 commented 3 days ago

When I first found out about this project I was excited, but I realized that it is not a traditional static QR code and I didn't find a sharing solution. Do I think it is possible to share via gifs?

sz3 commented 1 day ago

The issue is file size. Compression (zstd) is built into the format, but compression can only help so much. The reason cimbar works (imo) has a lot to do with the ephemeral nature of the frames -- we create one, show it on screen, and throw it away and move onto the next -- which allows it to sidestep the issue of the size of the encoded image.

That said, the cimbar cli can output pngs, and those image files can be combined into a gif. But the gif might be larger than the initial file!