douzi8 / base64-img

convert img to base64, or convert base64 to img
164 stars 29 forks source link

fix for properly hanlding svg formats by appending '+xml' to the svg … #8

Closed zombieleet closed 2 years ago

zombieleet commented 6 years ago

base64-img package does not properly read handling svg extensions. It uses "image/svg" for the format of svg in the base64 string, this pull request fixes that by appending "+xml" to the "svg"

douzi8 commented 6 years ago

I'm already fixed this bug, thanks

zombieleet commented 6 years ago

you made the changes 2 days ago , and this PR was created 12 days ago, why didn't you merge this PR instead ?