picture-compress
v2.0.1
Published
This is a very handy recursive image compressor and metadata remover! Simple to use!
Downloads
4
Readme
Image compressor and metadata remover
This is a very handy recursive image compressor and metadata remover! Simple to use!
Install
npm i -g picture-compress
Or use aliases
alias cimg='node /path_to_project/cimg.js'
alias rimg='node /path_to_project/rimg.js'
Compress image
Compress one image
cimg /directory/image1.png
cimg /directory/image2.jpeg
cimg /directory/sub/image3.gif
cimg /directory/sub/sub/image4.svg
Compress all images in directory (recursive)
# Some directory
cimg /directory
# Or current directory
cimg .
Remove metadata from image
Remove metadata from one image
rimg /directory/image1.png
rimg /directory/image2.jpeg
rimg /directory/sub/image3.gif
rimg /directory/sub/sub/image4.svg
Remove metadata from all images in directory (recursive)
# Some directory
rimg /directory
# Or current directory
rimg .
How it works?
We use API from this services:
- https://imagecompressor.com
- https://coding.tools/exif-remover