Resize images so they're smaller. They will be resized so the width is 1000px. The height-width ratio will stay the same.
- You need ImageMagick and GraphicsMagick.
brew install imagemagick graphicsmagickif on Mac. Note that thegmmodule doesn't throw an error if GraphicsMagick is not correctly installed. One way to tell it's not installed correctly is if the images are converting very very fast. Each one should take a bit of time. - Run
npm installto install the necessary packages.
- Place your images into the "in" folder.
- Run the script with
node convert.js - If you want to automatically upload your images to your AWS S3 bucket, then you can use
upload.shscript. Use at your own risk.