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

Compress generated PNGs #58

Open
ezekielaquino opened this issue Feb 1, 2019 · 3 comments
Open

Compress generated PNGs #58

ezekielaquino opened this issue Feb 1, 2019 · 3 comments
Assignees

Comments

@ezekielaquino
Copy link

The generated PNG output is not using a compression e.g. TinyPNG, would be cool if it would do so automagically!

@YoshiWalsh
Copy link

FYI TinyPNG uses the open-source library pngquant under-the-hood.

gatsby-plugin-favicon is just a wrapper around favicons-webpack-plugin, and favicons-webpack-plugin is just a wrapper around itgalaxy/favicons. So in order for compression to be implemented I think itgalaxy/favicons would have to add it.

But itgalaxy/favicons don't want to add any native dependencies so this seems unlikely to ever happen.

I'd love this though, especially if the generated ICO file also contained the compressed PNG images.

@julien1619
Copy link
Member

I'm planning to move away from favicons-webpack-plugin because it seems to be unmaintained. I'll switch to sharp and you will likely be able to compress generated PNGs.

@julien1619 julien1619 self-assigned this May 25, 2019
@mikepuglisi
Copy link

I just ran into this issue. I recently started using Jimp which handles image processing "with zero native dependencies." Something to consider over sharp.

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

4 participants