Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 581 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 581 Bytes

Image Compressor - Backend with ExpressJS

Build and run :

npm i
npm run build
npm start or npm run dev

Upload image :

! Method: POST
# Shape: FormData
- Parameters:
  Name: image - Type: file
  Name: quality - Type: string - Optional(If you don't send it, in server it will 60 by default)

Getting compressed image :

! Method: GET
# Shape: URL Parameter
- Request parameter: imageName
+ Server response: image file
@@ Request example --> your_server_adderss/imageName @@

Front-End : Click Here