View on GitHub

photo-optimize

PHOTO OPTIMIZE

Developed by Phuong Duong

Prerequisite

Installation

  1. Install Node.JS: Download and Install here
  2. Open Terminal or iTerm and clone this project:
    git clone https://gitlab.com/dthphuong1/photo-optimize.git
    
  3. Open project:
    cd photo-optimize
    
  4. Install necessary packages:
    npm install
    
  5. Put your high quality photos in images folder

  6. 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