ayastreb / bandwidth-hero-proxy

:zap: Proxy that compresses images to low-resolution
https://bandwidth-hero.com/
MIT License
189 stars 154 forks source link

API endpoint documentation #17

Open ttpro1995 opened 5 years ago

ttpro1995 commented 5 years ago

Hi @ayastreb , I think I would need API documentation (how to make request with postman, ...). I would like to make another application that would use my bandwidth-hero-proxy as a mean of image compression. However, I am not good at nodejs to read the source code.

ayastreb commented 5 years ago

Hi! There's no real API, it's just a GET request to the endpoint with a few URL params: url - URL to the source image webp - when set to 1 convert to webp, otherwise to jpeg grayscale - when set to 1 convert to greyscale, otherwise keep color quality - compressions quality, higher is better, e.g. 90 is high quality, 30 is low quality

you can see the requests in chrome dev tools network tab, when extension is enabled.