On Tue, Jun 9, 2020 at 4:35 PM Jonathan Cachat <[email protected]> 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?? > It is wise to transition away from Google *Image* Charts (the service where you provide a URL and get a static image in return). Google Charts (the JavaScript library that generates dynamic charts) is not deprecated. However, it doesn't generate QR codes. There are other threads on this newsgroup that suggest alternatives. > 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) > No, there's no reason why that would be the case. The service hasn't changed. I've lowered the server capacity to encourage people to switch, but that can't explain why it would work for one dimension but not another. There are restrictions on how large an image one can generate, and how long the URL can be, but those restrictions aren't recent. Jon > > 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/42ed315a-a52c-42f4-95a3-7b57a9a92b21o%40googlegroups.com > <https://groups.google.com/d/msgid/google-chart-api/42ed315a-a52c-42f4-95a3-7b57a9a92b21o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAJs5hDZWXyt9CBh--fZBxWLfUPzjZ%3DV-oY4qSmdNpB6HjQoc7A%40mail.gmail.com.
