Skip to content

Convert a folder of images to multiple variants of different sizes and qualities for the web

License

Notifications You must be signed in to change notification settings

Accords-Library/img.accords-library.com

Repository files navigation

img.accords-library.com

Installation

git clone https://github.com/Accords-Library/img.accords-library.com.git
cd img.accords-library.com
npm install

To install imagemagick, run the following command:

./install.sh

To convert all images run: (possibly change the source image folder in the script beforehand)

python3 processAll.py

To serve the files, run:

./run_img_server.sh

To start the api server, create a .env file and add:

TOKEN=SET A KEY TO BE USED FOR AUTH BY THE WEBHOOK
PORT=PORT TO USE WHEN RUNNING THE SERVER

Then run:

./run_img_api.sh

About

Convert a folder of images to multiple variants of different sizes and qualities for the web

Resources

License

Stars

Watchers

Forks