Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API endpoint documentation #17

Open
ttpro1995 opened this issue Jul 18, 2018 · 1 comment
Open

API endpoint documentation #17

ttpro1995 opened this issue Jul 18, 2018 · 1 comment

Comments

@ttpro1995
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants