install all dependencies:
$ npm install
run server:
$ npm start
simple UI:
GET "/"
todo
: 1 - resize, 2 - crop
image
: file
if todo == 1:
width
: int - pixels wide the resultant image should beheigth
: int - pixels high the resultant image should be
if todo == 2:
top
: int - zero-indexed offset from top edgeleft
: int - zero-indexed offset from left edge
optional params:
from
: str - start from this date (including) format dd-mm-yyyyto
: str - start from (including) format dd-mm-yyyy
example: http://localhost:3000/log?from=19-10-2020&to=21-10-2020