-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Embedded (base64) images in SVG are not rendered #14348
Comments
+1. I encountered the same issue using PhantomJS build 2.1.1, on Mac OSX. |
Exact same problem. SVG renders fine in chrome, and if I use phantomjs to go straight from SVG to PNG, the embedded base64 encoded png renders fine. But If I embed the SVG in an HTML page and attempt to go from HTML to PDF, the SVG is missing its embedded PNG background. OS X 10.11 with phantomJS 2.1.1 |
+1 |
PDF from this HTML will get svg rendered
PDF from this HTML will not have image
PDF from this HTML will have two images
|
Phantomjs doesn't render element with background like this: MacOs Sierra 10.12.6 |
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
According to Mozilla's SVG documentation, the data URL's in SVG only support JPEG, PNG and other SVG's , so I would expect |
Which version of PhantomJS are you using? Tip: run
phantomjs --version
.2.2.0-development
What steps will reproduce the problem?
phantomjs examples/rasterize.js test.html test.pdf
test.html
document:and the following
test.svg
:The embedded image element does not render when the page is exported to PDF or PNG while it renders fine when
test.html
is opened in a Web browser (tested with Safari and Chrome).Which operating system are you using?
Mac OS X
Did you use binary PhantomJS or did you compile it from source?
Compiled from source @6090f54
Please provide any additional information below.
Surprisingly, the embedded image does render with the following page:
That is the corresponding image is rendered twice.
The text was updated successfully, but these errors were encountered: