Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 586 Bytes

README.md

File metadata and controls

45 lines (33 loc) · 586 Bytes

file-resize

Server for file resize

Commands

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

Usage

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
}