Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8493141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:55:30+00:00 2026-06-10T22:55:30+00:00

I’ve written some code that outputs the minimum numbers of pixels required to accommodate

  • 0

I’ve written some code that outputs the minimum numbers of pixels required to accommodate a standards compliant QR code given the characters to be encoded, the required margin, and EC Level. However, I’m getting blank image responses from Google instead of valid QR Codes.

The smallest QR Code possible is a 29×29 pixel Version 1 QR Code (21 coded modules + 4 module margin on each side). example

1 char QR code

According to the Google Charts QR code documentation the maximum number of 0-9 digits you can have in the Version 1 QR Code at EC Level H is 17. However, specifying the parameters as such results in a blank image; no matter what the choe parameter is set to; because there is more data being encoded than can fit.

Should be valid but blank

Reducing the number of characters to 14 results in a valid QR code.

Must reduce digits to work

So, does anyone have any idea how much data can be encoded by the Google Charts API at each given Version and EC Level? Is it character byte dependant? My code is written in Java, but a solution in any programming language, if required, would suffice.

Hopefully I’ve done something wrong, or there is some logic that can be followed, instead of it being a “good enough” implementation of QR Codes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:55:32+00:00Added an answer on June 10, 2026 at 10:55 pm

    There is no official answer to this. As the API is now deprecated, it’s unlikely that an answer will ever surface or the bug will ever be fixed. You’re better off using zxing instead as it’s still developed and doesn’t suffer from the mentioned issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.