9sharp / qrcoder

Encode image with QR code.
MIT License
1 stars 0 forks source link

开发计划讨论 #4

Open hszcg opened 9 years ago

hszcg commented 9 years ago

设计方案讨论请见 https://github.com/9sharp/qrcoder/issues/3

欢迎各位回复讨论~

hszcg commented 9 years ago

@ccding @kaicheng @mrroach9 @edwardtoday

hszcg commented 9 years ago

第一版已经基本实现完毕,装好所有的依赖之后,运行grunt test,应该可以得到如下测试结果 (如果各位参考README配置环境,如果依然有困难,欢迎讨论)

screen shot 2014-10-01 at 11 12 22 pm

目前采用的方案是,先把原512_512的图像resize到128_128,然后JPEG质量为10进行压缩,采用QRcode Version 40,Level L进行编码,编码后图像大小为708_708(177_177的module,每个module为4*4像素),具体参数请参考 https://github.com/9sharp/qrcoder/blob/2161961d5930a59f212c5365d9e127ed697e2f26/test/test.js#L12https://github.com/9sharp/qrcoder/blob/2161961d5930a59f212c5365d9e127ed697e2f26/src/qrcoder.js#L26

btw,由于改动较多,grunt server暂时不work,需要fix……

hszcg commented 9 years ago

Added Travis CI integration on https://travis-ci.org/9sharp/qrcoder

Any future commit will auto trigger the Travis test job, you will get email notification the test result.

ccding commented 9 years ago

这事儿没有下文啦?

hszcg commented 9 years ago

@ccding 我当时大概就实现了这么多

感觉一般的QRcode压缩率就这么多了,不太实用,不知道其他人有没有其他高见