Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 945 Bytes

readme.md

File metadata and controls

17 lines (10 loc) · 945 Bytes

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.