You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for creating this plugin. I am using imagemin-cli and wanted to get your feedback regarding how to use the size option. I am attempting to use the desired file size over percent but am not seeing the final file size reduced to (in this case) 100 kb. Perhaps I am not using it correctly. While I am not getting errors in the console, I am also not seeing it reduced to the target size. Greatly appreciate your feedback when you have a moment.
Details of my setup:
I have this in my package.json. The find command fixes the issues whereby I keep my assets directory structure (they have a new feature that hasn 't been merged yet that addresses this). I have tried dropping the curly brackets as well.:
"_optimize-images": "find ./assets/src/ -type f | xargs -I % sh -c 'imagemin --plugin.jpegoptim.size={100} --plugin.pngquant.quality={0.1,0.2} % -o ../build/$(dirname %)'"
That resulting image is 3 kb less than the original: 161 kb. Thanks for your help in advance.
The text was updated successfully, but these errors were encountered:
Thanks for creating this plugin. I am using imagemin-cli and wanted to get your feedback regarding how to use the
size
option. I am attempting to use the desired file size over percent but am not seeing the final file size reduced to (in this case) 100 kb. Perhaps I am not using it correctly. While I am not getting errors in the console, I am also not seeing it reduced to the target size. Greatly appreciate your feedback when you have a moment.Details of my setup:
I have this in my
package.json
. The find command fixes the issues whereby I keep my assets directory structure (they have a new feature that hasn 't been merged yet that addresses this). I have tried dropping the curly brackets as well.:That resulting image is 3 kb less than the original: 161 kb. Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: