New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to load image file (PNG/JPEG) as embedded <image>
?
#179
Labels
Comments
@meowtec could you please attach PNG image which you try to transform? |
PNG file is: then I require it using:
In version 0.3, I got a SVG symbol like this:
While In version 3.x, I got the error message:
|
Now I write a loader to do it:
I don't know if there is a ready-made solution. |
i got the same exception when i loaded png file throw sprite-loader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the old version (0.3), I found that if I use svg-sprite-loader at a PNG file, then the PNG will be convert to a svg with embedded BASE64
<image>
tag.https://github.com/kisenka/svg-sprite-loader/blob/v0.3.1/lib/processings/raster-image-to-svg.js
While in the latest version, this feature has been removed.
I wonder how can I get the same functionality in version 3.2 ? Do I have to use anthor loader, just transform PNG to svg, like this:
The text was updated successfully, but these errors were encountered: