-
Install Node.js
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash source ~/.bashrc
-
Install the latest LTS version of npm
nvm install v18.12.1
-
Install dependencies
npm install
npm run start
-
To resize images, use
imagemagick
on Linuxsudo apt install imagemagick-6.q16
Resize all images in a folder
convert "*.jpg[800x]" -set filename:base "%[basename]" "%[filename:base].jpg"