How to get the image extension .JPG

Is it possible to get the exact filename and extension URL?

I need the filename to use in a web service, but it needs the tradicional image URL “https://…chart.jpg” or “https://…chart.png” to work properly.

Hi @andreantivilo,

You can append the text &f=.png to the chart URL to give it a proper filename ending.

For example:{type:'bar',data:{labels:[2012,2013,2014,2015, 2016],datasets:[{label:'Users',data:[120,60,50,180,120]}]}}&f=.png

If you are using a “short URL” or Chart Maker URL, you can do the following:

I need to automatically download this file. The system needs to receive the whole URL with the file.jpg

In the meantime, I figured it out using Make to call the chart API, then I used Google Cloud Storage to upload the file (created with the chart data response) and then I can send a WhatsApp message with the complete chart file url.