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

Poor quality when converting favicon ICO to PNG #138

Open
dstaver opened this issue Aug 28, 2016 · 0 comments
Open

Poor quality when converting favicon ICO to PNG #138

dstaver opened this issue Aug 28, 2016 · 0 comments

Comments

@dstaver
Copy link

dstaver commented Aug 28, 2016

Using imagemagick on command line:

convert -flatten -thumbnail 64x64 klikk.ico klikk.png

Using imagemagick native:
fs.writeFileSync('klikk.png', im.convert({ srcData: fs.readFileSync('klikk.ico'), srcFormat: 'ICO', format: 'PNG', width: 64, height: 64, quality: 100 }));

When comparing the resulting images the one converted with imagemagick native has siginificantly lower resolution than the one converted on command line.

I'm guessing that imagemagick native chooses the first image contained in the ICO file which is usually the lowest resolution version, while the convert command chooses the last which is usually the highest resolution version.

klikk.ico.zip

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

1 participant