Commit Graph

56 Commits (master)

Author SHA1 Message Date
Tom da1b656868 Encode mixed numeric/alphanumeric data segments as one alphanumeric data segment if that's more efficient. Also add error check to NewWithForcedVersion(): Check if the content is too large for the requested QR code version. 2020-06-17 20:51:04 +01:00
tfh 7ac0b40b20
Merge pull request #33 from vsenko/occasional-byte-encoding-efficiency-over-mixed-encoding
Occasional byte encoding efficiency over mixed encoding
2020-05-26 18:57:31 +01:00
tfh a3b4839082
Merge pull request #34 from vsenko/export-NewWithForcedVersion
Export NewWithForcedVersion
2020-05-19 18:19:59 +01:00
tfh 0317bf8cc7
Merge pull request #29 from shvc/master
go mod
2020-05-19 18:15:08 +01:00
vsenko 12c2b5949a Export NewWithForcedVersion 2020-05-19 08:15:19 +00:00
vsenko 9885e0e620 Check if a single byte encoded segment would be more efficient than mixed encoding 2020-05-19 07:45:39 +00:00
vager 11642076e6 add go.mod 2020-01-13 17:04:35 +08:00
tfh 9434209cb0
Update README.md 2019-10-27 15:24:51 +00:00
Tom 016ced4a77 Merge branch 'fix_scaling' 2019-10-27 14:54:39 +00:00
Tom cb3bf7ba5a Add DisableBorder option to disable the QR Code quiet zone entirely, thus no more margins/borders. Defaults to borders for compatibility. 2019-10-17 17:33:59 +01:00
Tom f409379433 Fix optional tests using zbarimg 2019-10-17 17:33:22 +01:00
Tom 80e59a6a81 Fix scaling of QR codes in fixed sized images.
Previously each QR code module was the same number of pixels in width/height; this leads to some unfavourably small QR codes generated, with lots of white space.

Now, we map each image pixel to the nearest "pixel" in the QR code instead. QR code modules can now vary width/height by a pixel or two.
2019-10-14 18:14:52 +01:00
Tom bbbe40053b Fix scaling of QR codes in fixed sized images.
Previously each QR code module was the same number of pixels in width/height; this leads to some unfavourably small QR codes generated, with lots of white space.

Now, we map each image pixel to the nearest "pixel" in the QR code instead. QR code modules can now vary width/height by a pixel or two.
2019-10-14 18:07:12 +01:00
tfh dc11ecdae0
Merge pull request #20 from warbaby/img_set_performance
Improve img bitmap fill performance
2019-01-10 00:05:54 +00:00
wangbei 4444a7dc51 bgClr is always zero, no need to set 2019-01-07 11:13:20 +08:00
wangbei 622db714a4 perf: improve img bitmap fill performance 2019-01-05 20:39:05 +08:00
tfh bcdd5e3782
Merge pull request #19 from pseyfert/smallerQRcode
create smaller QR codes with ToSmallString
2019-01-03 00:52:19 +00:00
Paul Seyfert 864062d029 create smaller QR codes with ToSmallString
Use the characters ▄ and ▀ for two pixel rows per character row.
2019-01-03 01:17:47 +01:00
tfh cf5f9fa2f0
Merge pull request #15 from chris-rock/chris-rock/text-as-lib
moves cli output generator to lib
2017-12-29 12:04:47 +00:00
Christoph Hartmann 0a5d819fd6 moves cli output generator to lib. this enables other application to reuse this functionality
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-12-29 12:54:25 +01:00
tfh 6eeeae4c62
Merge pull request #14 from onodera-punpun/master
Add WriteColorFile
2017-12-27 01:05:19 +00:00
Camille Scholtz 429dd1126e Add WriteColorFile 2017-12-26 15:14:04 +01:00
tfh 80895b4a9e
Merge pull request #12 from EwanEwart/patch-1
Update example_test.go
2017-12-14 17:50:17 +00:00
EwanEwart d2bf5ddb8e
Update example_test.go
Amendments Thu, 2017-December-14:
	- test integration (go test -v)
	- idiomatic go code
2017-12-14 11:40:02 +00:00
tfh 695fc75a09 Implement variable sized image support. 2017-08-12 16:12:11 +00:00
Tom Harwood 0bb60b5a71 Merge pull request #9 from skip2/skip2-travis-go1.7
Update TravisCI config to use Go 1.7.
2017-04-04 21:54:33 +01:00
Tom Harwood 3d303647ae Update TravisCI config to use Go 1.7. 2017-04-04 21:53:34 +01:00
Tom Harwood 57a8987d83 Merge pull request #8 from Aslai/master
Crunch down output PNG by a bit
2017-04-04 21:51:34 +01:00
Kaslai ef4aa36554 Crunch down output PNG by a bit 2017-04-04 12:03:09 -07:00
Tom Harwood 4c61b63be7 Merge pull request #7 from Deleplace/negative
Extra flag -i to invert black and white (negative photo).
2017-03-28 00:37:06 +01:00
Deleplace 561ea7ec75 Extra flag -i to invert black and white (negative photo). 2017-03-24 00:17:11 +01:00
Tom Harwood 131cd46452 Merge pull request #6 from Deleplace/master
Extra flag -t to print as 2D char map on STDOUT.
2017-03-23 23:10:42 +00:00
Deleplace 536a881cd8 Better rectangle char U+2588 █ 'FULL BLOCK' for text-art. 2017-03-23 23:51:37 +01:00
Deleplace ed75e031bc 2D char map works better on "white" background. 2017-03-22 15:51:18 +01:00
Deleplace 4bd85f5c1a Extra flag -t to print as 2D char map on STDOUT. 2017-03-22 15:48:41 +01:00
Tom Harwood cf02323edc Merge pull request #3 from shenwei356/master
add cli, add method QRCode.Write(), update readme
2016-12-31 17:30:31 +00:00
shenwei356 8d45c0c61d remove "release" from .travis.yml 2017-01-01 00:53:46 +08:00
shenwei356 a1411f21c9 fix go get command 2017-01-01 00:01:04 +08:00
shenwei356 64729ee8b5 add cli, add method QRCode.Write(), update readme 2016-12-31 23:44:36 +08:00
Skip 5bfceac8c4 Merge pull request #2 from shawnps/gofmt
gofmt -s
2016-01-24 02:09:45 +00:00
shawnps d6fbce3eb2 gofmt -s 2016-01-22 15:39:53 -08:00
Tom Harwood a4b2f114de Add Travis CI button, update docs path to point at github. 2015-03-15 20:24:06 +00:00
Tom Harwood cf115fc637 Add Travis CI config file. 2015-03-15 20:18:36 +00:00
Tom Harwood 3484a698f5 Switch to github import paths. 2015-03-15 20:10:10 +00:00
Asa cbd4f54dad Update README.md 2015-03-14 20:01:15 +00:00
Asa 6f3da5a559 Create README.md 2015-03-14 19:36:11 +00:00
Tom Harwood 5f6c90a0d0 Package documentation functions as the README. 2014-04-23 22:05:14 +01:00
Tom Harwood 4d19c4c411 Fix symbols consisting of a single block not having their remainder bits applied. 2014-04-23 20:08:51 +01:00
Tom Harwood fe00d3979f += bitset comments 2014-04-23 19:37:27 +01:00
Tom Harwood 0101a5ded8 golint fixes #2 2014-04-23 00:20:53 +01:00