Code Monkey home page Code Monkey logo

imagecdn's Introduction

ImageCDN

A free image resizing service and CDN.

Why?

This started out out of a repeated frustration that optimising images between multiple projects was a constantly moving target, requiring large amounts of boilerplate. Image libraries existed but went about solving the same problems in different ways to varying degress of success.

This is completely open-source under the ISC license, so all contributions are welcomed. You are free to run this yourself however you wish: Historically this has been deployed either via Docker (AWS ECS/Kubernetes) or directly via Node.

The public instance of this service is available here: https://imagecdn.app/

Rough Architecture

  • HTTP Request comes in, specifying image source.
  • Image Source is streamed.
  • Format determined by QueryString parameter, falling back to Accept header.
  • Image is streamed to libvips orchestration layer for conversion and manipulation.
  • Image is run through image optimisation pipeline.
  • Image served with a Vary on Accept and Accept-Encoding.

Getting Started

macOS

$ brew install libimagequant

Ubuntu

$ sudo apt-get install libimagequant-dev

imagecdn's People

Contributors

alexwilson avatar dependabot-preview[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

imagecdn's Issues

Instllation instructions?

Do you have installation instructions for implementing the Docker configuration into a production environment? -rad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.