Server for file resize
Command to run Docker
docker build -t file-resize .
docker run -d -p 127.0.0.1:5000:5000/tcp file-resize
Command to run locally
npm ci
npm run dev # start in dev mode with nodemon
# or
npm ci
npm run build
npm start # start in production mode
For PDF reduce quality and join multiples files into one
{
"files": ["base64file-1","base64file-2"],
"resolution": "screen"
}
For Image reduce quality
{
"file": "base64file",
"extension": "png",
"resolution": 8
}