Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

SVG files are converted to the png file with the text #193

Open
marekxhtml opened this issue Nov 3, 2015 · 3 comments
Open

SVG files are converted to the png file with the text #193

marekxhtml opened this issue Nov 3, 2015 · 3 comments
Milestone

Comments

@marekxhtml
Copy link

I mean a fallback file for the SVG
https://cloud.githubusercontent.com/assets/6696870/10915713/39813aa8-8258-11e5-93bb-f60298548d6a.png

@marekxhtml marekxhtml reopened this Nov 3, 2015
@thymikee
Copy link
Contributor

thymikee commented Nov 3, 2015

@marekxhtml, can you provide information about Node and generator version? Also attached image isn't very descriptive...

@marekxhtml
Copy link
Author

@thymikee
node v4.1.0
generator-xh 0.6.7
It is a preview of the PNG file which is a result of the conversion of the SVG.
Here is the zoomed part of this preview - https://cloud.githubusercontent.com/assets/6696870/10916660/c6bc782a-825c-11e5-8017-95d137fa0203.png

@marziolek
Copy link

If SVG file does not have xml header

<?xml version="1.0" encoding="utf-8"?>

then svg2png is doing this weird stuff. Configuration for imagemin should have

options: {
     svgoPlugins:[
        { removeXMLProcInst: false }
     ]
}

to work correctly with svg2png.

@piotrkulpinski piotrkulpinski added this to the v0.8 milestone Feb 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants