noahlaux / imageproxy

Clever resolution and content-aware image proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image proxy

Cleverly crops, resizes & caches image provided with the url parameter to full screen dimensions using imaginary.

Usage

Run docker-compose.yml using docker-compose

docker-compose up

Navigate your browser to http://localhost:3001/?url=https://fortunedotcom.files.wordpress.com/2017/08/big-ben.jpg

Use the url parameter to point to image. The image above is almost 758KB & 3002x2003. You can properly shave off a least a 9 times of the size using the service.

try http://localhost:3001/?url=http://www.jasondunn.com/images/Cape-Breton-Lighthouse-16-9-HDR.jpg and notice how the image crops cleverly when you resize your browser window. It makes sure the lighthouse is always nicely centered, because it's entropy is significant in the overall image.

About

Clever resolution and content-aware image proxy


Languages

Language:JavaScript 65.2%Language:HTML 26.8%Language:CSS 8.0%