Home Ask Login Register

Developers Planet

Your answer is one click away!

Startec February 2016

What kind of image file format does the Google Charts QR code generator use?

If you use the google charts qr code generator you get html output that looks like this

<img src="https://chart.googleapis.com/chartcht=qr&amp;chs=500x500&amp;=Hello+world&amp;choe=UTF-8">`

To me that does not look look like a data URI and it has no filename extension either.

What kind of image format is this?


James Donnelly February 2016

PNG. It doesn't have the .png file extension, but it does have the image/png MIME type:

enter image description here

When loading the image, the browser receives the following header:


This is what lets the browser know that it's a PNG.

Post Status

Asked in February 2016
Viewed 2,181 times
Voted 14
Answered 1 times


Leave an answer

Quote of the day: live life