deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
320 stars 80 forks source link

Added support for "jpg" base64 encoded images #361

Closed FelixFrog closed 1 year ago

FelixFrog commented 1 year ago

Previously this would create problems for certain svgs, making image not render

deeplook commented 1 year ago

Does it make sense to add "jpeg" (with an "e") as well?

FelixFrog commented 1 year ago

Does it make sense to add "jpeg" (with an "e") as well?

I think the code already works for href="data:image/jpeg;base64,..." images. It just didn't process the ones where jpg is spelled without and "e", resulting in incomplete renders.

claudep commented 1 year ago

Thanks!