- Try out
- Create a folder user
mkdir Scaleit
cd Scaleit
- Clone the repo
git clone https://github.com/Adityasinghvats/ScaleIt-CLI.git
- Now enter the command
cd cli-image
- Install packages using
npm install
- Bring all your images to the
/test
folder and then run the command.
image i="test\" w 100 q 80
i
tag gives tha source file.w
is for giving user defined width.q
is for giving user defined quality.- On running the command all the files in the test folder will be resized and optimised and images will be saved in their original location.
- Project uses
resize-optimise-image
package which is built on top ofJimp
.