Skip to content

monicagangwar/imageCompress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apis to compress images

Installation

git clone https://github.com/monicagangwar/imageCompress.git
cd imageCompress
npm install

Start server

node server.js

Apis

Apis are designed to consume jpeg / png images

compressFromPhoto

curl -X POST \
  http://localhost:3000/api/compressFromPhoto \
  -F 'image=${path_to_image}'

compressFromUrl

curl -X POST \
  http://localhost:3000/api/compressFromUrl \
  -H 'content-type: application/json' \
  -d '[ "https://www.filepicker.io/api/file/Trc6VsKQouTn7lHAVKJg", "https://www.filepicker.io/api/file/XLU8pMCPQDGrdx19RkAs" ]'

compressFromCsv

curl -X POST \
  http://localhost:3000/api/compressFromCsv \
  -F 'file=@${path_to_csv}'

Csv format

url
https://www.filepicker.io/api/file/XLU8pMCPQDGrdx19RkAs
https://www.filepicker.io/api/file/Trc6VsKQouTn7lHAVKJg

img

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published