For future onlookers who would prefer an open-source alternative, I've added drop-in compatibility for Google Image Charts' QR code format to QuickChart <https://github.com/typpo/quickchart>.
https://quickchart.io/chart?cht=qr&chs=150x150&chl=Hello+world [image: https://quickchart.io/chart?cht=qr&chs=150x150&chl=Hello%20world] Enjoy, Ian On Tuesday, June 9, 2020 at 1:35:50 PM UTC-7, Jonathan Cachat wrote: > > Good Afternoon Everyone - > > I am brushing up an old piece of code that called the Google Charts API to > generate QR Codes for items in a database. The original code, which calls > the charts API via 'https://chart.googleapis.com/chart' still works - in > that is returns a QR Image. But it only works in this original script. If i > just duplicate that code file, and make unrelated changes (Charts API URL > same, but dimensions of page where QR code image is placed modify) - for > some reason it breaks. the error message is "could not retrieve QR Chart > from Google" - so API URL is same, some other elements in the php code are > changed. > > 1) Is the google apis chart truly depreciated, in that regardless of what > works and what breaks - it would be wise to transistion away from Google > Charts?? for example, use https://documentation.image-charts.com/qr-codes/ > Image-Charts.com's > API?? > > 2) Any thoughts why it would work on original php file, but not a > duplicate of that file with dimension variables changed?? (PdfQrCode.php is > original, ZebraLabels.php is modified - both attached) > > Any insight at all, greatly appreciated... > > JC > > > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-chart-api/9f3b2fa5-e4f9-4722-9700-9ece4ceba2eao%40googlegroups.com.
