项目作者: ayastreb

项目描述 :
:zap: Proxy that compresses images to low-resolution
高级语言: JavaScript
项目地址: git://github.com/ayastreb/bandwidth-hero-proxy.git
创建时间: 2017-05-24T08:48:31Z
项目社区:https://github.com/ayastreb/bandwidth-hero-proxy

开源协议:MIT License

下载


Bandwidth Hero Data Compression Service

NSP Status

This data compression service is used by
Bandwidth Hero browser extension. It compresses given
image to low-res WebP or JPEG image. Optionally it also
converts image to greyscale to save even more data.

It downloads original image and transforms it with Sharp on the
fly without saving images on disk.

This is NOT an anonymizing proxy — it downloads images on user’s behalf, passing cookies
and user’s IP address through to the origin host.

Deployment

Heroku

You can deploy this service to Heroku:

Deploy

Deploy to Heroku guide

Self-hosted

Data compression service is a Node.js app which you can run on any server that supports Node.js.
Check out
this guide
on how to setup Node.js on Ubuntu.

DigitalOcean also provides an
easy way to setup a server ready to
host Node.js apps.