premasagar / pablo

Pablo is a lightweight, expressive JavaScript SVG library. Pablo creates interactive drawings with SVG (Scalable Vector Graphics), giving access to all of SVG's granularity and power.
https://pablojs.com
MIT License
411 stars 17 forks source link

png format dataUrl() not working on Internet Explorer 11 #99

Open kevhui opened 7 years ago

kevhui commented 7 years ago

I'm having issues using the the dataUrl to extract a base64 png on Internet Explorer 11


// svg to test
var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" version="1.1"><rect width="200" height="100" stroke="black" stroke-width="6" fill="green"/></svg>';

// Outputs data:image/svg+xml;base64,PHN2Z......
Pablo(svg).dataUrl('svg', function(uri){console.log(uri)}); //returns the base64 of xml

// Outputs data:,
Pablo(svg).dataUrl('png', function(uri){console.log(uri)});

// Returns true
Pablo.support.image.png(function(support){console.log(support);})
```;
premasagar commented 7 years ago

Thanks for the report.

0xAnon101 commented 3 years ago

Any progress on this one ?