-
Notifications
You must be signed in to change notification settings - Fork 79
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
How I can compress webp image format? #45
Comments
@beatrizsmerino Are you getting an error while compressing your image? Can you provide the image? |
@semiromid This extension webp dont exist on the list: https://github.com/semiromid/compress-images#features
But I try this: If the webp images are not compressed, how can I pass them to the dist folder? |
WebP is a modern image format that provides superior lossless and lossy compression for images on the web. From [PNG or JPEG] ---To---> [WebP] You must it use with PNG or JPEG images. As example:
|
Another example:
|
Hi!! I usually use Mac, but at work many colleagues use windows and some scripts that I have created do not work. So I am checking all options of compression and the compatibility with the operative systems Mac, Windows and Ubuntu. These are the problems I have encountered: pngquant-bin
Link issues comments: webp
|
Hi!
I tested pngquant-bin 6.9.0 on Windows and it wokrs well. Perhaps you should install version 6.9.0.
I warned that pngquant does not work properly on some OS. I can see that this problem has to do with the the library pngquant-bin but not the compress-images.
This problem is not related with the compress-images. https://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile https://developers.google.com/speed/webp/
Maybe you need use: As example
You need implement this function yourself. Or if many people need it, then perhaps, I will do it when I have time. |
You may download last version from https://pngquant.org/ and overwrite in pngquant-bin |
Hi !! This it is the code that I using, and I have some questions
How can I compress the webp image format?
I am using this package in my project to compress and export the images from src folder to dist folder. But if any image is not compressed, it does not copy it to the dist folder, and therefore cannot find it.
And if it can be done, how do I do it? Why does this not work?
{ webp: { engine: 'webp', command: ['-quality', '60'] } },
The text was updated successfully, but these errors were encountered: