Min is a CLI tool that converts PNG and JPG image files into WebP format in large asset folders.
![Min_img](https://private-user-images.githubusercontent.com/109636404/331447476-c6f5c6cf-f6d0-46f7-98ff-4eafa2ed3f07.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3MzczMzYsIm5iZiI6MTcyMTczNzAzNiwicGF0aCI6Ii8xMDk2MzY0MDQvMzMxNDQ3NDc2LWM2ZjVjNmNmLWY2ZDAtNDZmNy05OGZmLTRlYWZhMmVkM2YwNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyM1QxMjE3MTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04OTVlMTBjYjc3MjBjZWRiYTU0MDNmMDUwZDNiZWY2ZjExYjFmNzc2NzhkZTRkY2QyN2Y5MDgxMDYzN2RiZjM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vEey3vPv9_rcHkYsAysABHgOdCekV3YYrT0NSsknoZU)
Quick install:
curl -sSL https://gist.githubusercontent.com/Reed-Broadhead/551a7b2130c79dc28510f97a98b51755/raw/9d3c42862dab360a2b949de21a489b5e7e8e9cc2/install_min.sh | bash
If The above command didn't work you can install the binaries to:
usr/local/bin
Convert:
Option | Type | feture |
---|---|---|
-f / --file | Sting | Targets single file for conversion |
-q / --quality | int between 1-10 | Determins quality and size of img. Lower quality=smaller file. 10 best |
-r / --replace | flag | Gets rid of origanle file |
-h / --help | flag | Prints help |
If you find any bugs with the program or think it is missing any features you can contact me on Linkedin. Alternatively, If you could help contributions of any kind are always welcome, Thank you!
If you have any other question about min feel free to reach out and i will be happy to help. Linkedin Email