Skip to content

Quick and dirty script to make images smaller (for uploading)

Notifications You must be signed in to change notification settings

heinosasshallik/node-image-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-image-resize

Resize images so they're smaller. They will be resized so the width is 1000px. The height-width ratio will stay the same.

Prequisites

  • You need ImageMagick and GraphicsMagick. brew install imagemagick graphicsmagick if on Mac. Note that the gm module 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 install to install the necessary packages.

Usage

  • 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.sh script. Use at your own risk.

About

Quick and dirty script to make images smaller (for uploading)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published