ayastreb / bandwidth-hero-proxy

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

PHP adaption #21

Open petrk94 opened 5 years ago

petrk94 commented 5 years ago

Hello,

I would like to adapt it for a php application on the server, but how it communicating with the chrome extension? Maybe there is more possible to reduce and save traffic

changhaitravis commented 5 years ago

All you have to do is implement all the parameters mentioned in issue #17 or src/params.js and also the behavior where if no url is passed as a parameter it returns "bandwidth-hero-proxy".

This project uses sharp which in turn uses libvips, for which you can find php bindings here https://github.com/libvips/php-vips best of luck

staifa commented 3 weeks ago

https://github.com/staifa/php_bandwidth_hero_proxy/ here's a working example