Simple Image Optimizer script This script use sharp package for image optimization. Use Configuration section for specific adjustments Snipets for i in *.jpg; do node ~/image-optimizer/image-optimizer.js "$i"; done