imaustink / gulp-inline-images

Gulp plugin for converting linked HTML images into base64 encoded inline images. Works with local and remote files.
4 stars 10 forks source link

Inlined SVG not showed in Chrome #11

Open xxxKOTxxx opened 3 years ago

xxxKOTxxx commented 3 years ago

My SVG inlined in HTML shows as broken image. Fast research shows that if I change data:image/svg;base64, to data:image/svg+xml;base64, it works perfect. As workaround i changed file extention, but I think it should be fixed in getSrcBase64 function: $img.attr('src',data:image/${ext_format};base64,${result});

Please fix it.