-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
SVG streams without xml, DOCTYPE headers aren't supported #356
Comments
Hello, this looks like a limitation of ImageMagick's built-in SVG parser, as (optionally) used by libvips to handle SVGs. You'll probably have more success if you use libvips compiled against GraphicsMagick. The pre-compiled binaries provided by |
I tried to run it in a ubuntu docker instance that uses the current Is there something else i could try or do i have to specify some build flags to build libvips against gm? |
As of sharp v0.12.0, the preinstall script is no longer required for most flavours of Linux, including Ubuntu 12.04+ Are you able to try installing from the master branch without? |
@makepanic v0.13.0 is out now - have you been able to make any progress with this? |
Closing as I assume v0.13.x has solved this problem. Feel free to reopen if this is not the case. |
sharp streams currently only support svg images with the xml + DOCTYPE headers `
`Is it possible to add svg support for streams that omit these headers and only use the
<svg>
element?Example:
wikimedia-with-header.svg
wikimedia-without-header.svg
Sample code to reproduce:
which produces
probably related to #197
The text was updated successfully, but these errors were encountered: