Myfonts.com offers an open API that generates screenshots like so: http://ift.tt/1IzYUCk
I am trying to use the generated png file using a standard jQuery ajax request like so:
$.ajax({
url:'http://ift.tt/1IzYUCk',
dataType: "html",
success: function (response) {
console.log(response);
}
});
This is returning some super funky encoded png unicode like so �PNG IHDR*��}PLTE����������� <-- super abbreviated version
At first I tried appending the image as a data URI but that didn't work. Any idea what to do with this data to generate an image? Clicking on the link generates it.
Aucun commentaire:
Enregistrer un commentaire