Difference between revisions of "TransparantQR"

From RevSpace
Jump to navigation Jump to search
(add patch)
m
Line 7: Line 7:
 
}}
 
}}
  
Based on an idea of Zack Freeman [https://twitter.com/zackfreedman/status/1517555638456389632 twitter link], but then with full-color video background possible.
+
Based on an idea of Zack Freedman [https://twitter.com/zackfreedman/status/1517555638456389632 twitter link], but then with full-color video background possible.
 
Does not work on all readers, zbarimg fails on the PNG, but could be due to PNG alpha
 
Does not work on all readers, zbarimg fails on the PNG, but could be due to PNG alpha
 
channel interpreted in the wrong way.
 
channel interpreted in the wrong way.
 +
 +
It is a patch to GPL code, so modified source must be published.
 +
For convenience, patch file is encoded in QR as well.
 +
Commit message redacted and reduced, xz compression, and it fits!
  
 
Sourcecode patch to libqrencode: (xz compressed patchfile)
 
Sourcecode patch to libqrencode: (xz compressed patchfile)
 
[[File:TransparentQRPatch.png|thumb|patch]]
 
[[File:TransparentQRPatch.png|thumb|patch]]
 +
 +
Additional changes:
 +
Reduce location_ishiconstrast() remove the line 6 tests for even more area, seems to be allowed on most phone-based QR readers.

Revision as of 09:44, 25 April 2022

Project TransparantQR
Qrtest.png
Transparant QR code
Status Completed
Contact cmpxchg
Last Update 2022-04-25

Based on an idea of Zack Freedman twitter link, but then with full-color video background possible. Does not work on all readers, zbarimg fails on the PNG, but could be due to PNG alpha channel interpreted in the wrong way.

It is a patch to GPL code, so modified source must be published. For convenience, patch file is encoded in QR as well. Commit message redacted and reduced, xz compression, and it fits!

Sourcecode patch to libqrencode: (xz compressed patchfile)

patch

Additional changes: Reduce location_ishiconstrast() remove the line 6 tests for even more area, seems to be allowed on most phone-based QR readers.