Skip to content

Conversation

ngaurav
Copy link
Contributor

@ngaurav ngaurav commented Feb 20, 2021

Earlier all img tags were treated as a png or jpg image. But this PR ensures that img tags with base64 encoded SVG data gets parsed as SvgContentElement

Earlier all img tags were treated as a png or jpg image. But this PR ensures that img tags with base64 encoded SVG data gets parsed as SvgContentElement
Works on height=789.543, height=789.543pt, height=789.543in etc
erickok added a commit to vrtdev/flutter_html that referenced this pull request Feb 22, 2021
This supports SVG as base64 encoded data blob or inline tags.

This is an alternative to Sub6Resources#550 which did not use the new image API at all.
@erickok
Copy link
Contributor

erickok commented Feb 22, 2021

I'm sorry but we just introduced an image API just for use-cases like this. Having said that, the request is so reasonable that first-party support is warranted and I've added exactly that in #551.

@erickok erickok closed this Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants