An npm package to manipulate images using terminal.
To install the image-cli-tool globally, use the following command:
npm install -g image-cli-tool
- Compress an image
- Convert an image to another format
- Get image information
- Rotate Image by a specified angle
img-cli compress <input_file>
- Example:
img-cli compress myimage.jpg
- Example:
Default quality is 60%.
img-cli compress <input_file> -q <quality>
- Example:
img-cli compress myimage.jpg -q 80
- Example:
img-cli convert <input_file.extension> <output_file.extension>
- Example:
img-cli convert myimage.jpg myimage.png
img-cli info <input_file>
- Example:
img-cli info myimage.jpg
img-cli rotate <input_file> <rotate_angle>
- Example:
img-cli rotate myimage.jpg 90