Skip to content
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

Density argument didn't work as expected. #77

Open
enagorny opened this issue Mar 5, 2015 · 2 comments
Open

Density argument didn't work as expected. #77

enagorny opened this issue Mar 5, 2015 · 2 comments

Comments

@enagorny
Copy link

enagorny commented Mar 5, 2015

Density doesn't work for me for converting from svg to png.

code

var IM = require('imagemagick-native'),
    fs = require('fs');

fs.writeFileSync('help.png', IM.convert({
    srcData: fs.readFileSync('help.svg'),
    srcFormat: 'SVG',
    format: 'PNG',
    width: 2000,
    height: 2000,
    density: 1000,
}));

original svg file http://take.ms/Sxra2 (github doesn't support svg in comments yet).

and result
help

while converting by imagemagick
convert -resize 2000x2000 -density 1000 help.svg help2.png
produces:
help2

@anyab5
Copy link

anyab5 commented Jan 3, 2016

I am able to reproduce the issue as well.
Any update or plans to address it?

@hannupekka
Copy link

Yeah, density does not seem to get passed along. Same with colorspace.

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

No branches or pull requests

3 participants