Developed by Phuong Duong
- Node.JS v12.x
- Install Node.JS: Download and Install here
- Open Terminal or iTerm and clone this project:
git clone https://gitlab.com/dthphuong1/photo-optimize.git
- Open project:
cd photo-optimize
- Install necessary packages:
npm install
-
Put your high quality photos in
images
folder -
Run:
node main.js --size 1280 --quality 80
Ps1. You can change size
and quality
in above command
Ps2. The output (resize and compress) photos are in output
folder