Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering QR code to a fixed width PNG canvas #13

Open
daveespo opened this issue Jan 6, 2015 · 0 comments
Open

Rendering QR code to a fixed width PNG canvas #13

daveespo opened this issue Jan 6, 2015 · 0 comments

Comments

@daveespo
Copy link

daveespo commented Jan 6, 2015

We're using the now-deprecated Google Charting API (Infographic API) to generate QR codes. The shutdown-date is April 2015 so we're building our own Sinatra app to generate QR codes in an API-compatible way.

Google's API doesn't use pixels_per_module to scale up the image -- it takes a fixed Width x Height URL parameter (https://google-developers.appspot.com/chart/infographics/docs/qr_codes). I have a monkey patch to the PNG class provided by qrencoder that mimics Google's behavior (basically padding out a blank canvas and centering the rendered QR code in the canvas). I'd prefer to integrate it properly and will do so if you're still maintaining this gem. Should I go through the trouble?

(Sorry for the cynical tone but I've submitted quite a few patches to low activity projects and they just sit there and never get merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant