This script performs a bulk image resize for the Energy Dashboard. It will create two versions of the same image (full and thumbnail) and optimize for web.
Before running the script, ensure you have the imgp
tool installed.
- Debian Linux: Refer to https://github.com/jarun/imgp.
- MacOS: Refer to https://github.com/jarun/homebrew-imgp.
This script was developed and tested on Mac OS X Catalina. It should be compatible with Linux (or a Bash emulator), but I'm not guaranteeing compatibility! :)
- Clone this github repo
- Run the script -
./bulkImageResize -create
to create the input and output directories. - Copy the images you wish to resize to the
input
directory. - Run the script -
./bulkImageResize
to resize! - Optionally, you can delete the output directories recursively with
./bulkImageResize -remove
.