Convert a folder of images to multiple variants of different sizes and qualities for the web
Go to file
DrMint e26f65d898
Update README.md
2022-04-13 03:05:01 +02:00
.gitignore Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
LICENSE Initial commit 2022-02-19 02:17:04 +01:00
README.md Update README.md 2022-04-13 03:05:01 +02:00
app.js Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
install.sh More complex Python script 2022-02-21 01:45:15 +01:00
package-lock.json Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
package.json Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
process.py Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
processAll.py Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
run_img_api.sh Added api route for converting and deleting images 2022-04-13 02:59:59 +02:00
run_img_server.sh using http-server package for serving the files 2022-02-25 16:19:27 +01:00

README.md

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