Web server with NodeJS thats only function is to resize images from the web
The route will resize the image specified by u (url) to the specified wxh dimensions. The dimensions are in pixels, not percent.
The image should be resized to fill the dimensions as much as possible, so cropping may be necessary. For example, if the image is 200x800, and you want to resize to 100x100, the image would first be resized to 100x400, and then the height would be cropped down to 100.
Requires imagemagick CLI tools to be installed.
node server.js- Try to find a faster/lighter module to process the pictures
- Delete the pictures in the /img directory after some time
- Add options to compress the picture, ...
- Tests
Philmod <philippe.modard@gmail.com>