mustafauysal / photonized

Dead-simple image resizer and optimizer on-the-fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photonized

Photonized is an on-the-fly image resizer and optimizer that works on docker container. It's dead simple; you only need docker & docker-compose.

Requirements

Installation

git clone https://github.com/mustafauysal/photonized.git
cd photonized
docker-compose up -d

Proxy Cache

Photonized exposes port 80 and 9001. If you don't want to use proxy caching, use 9001 instead of 80.

Examples

Proxy Cached resize: http://127.0.0.1/uysalmustafa.com/wp-content/uploads/2019/04/ca-2016-1024x767.jpg?w=200

Resize without caching: http://127.0.0.1:9001/uysalmustafa.com/wp-content/uploads/2019/04/ca-2016-1024x767.jpg?w=200

Crop: http://127.0.0.1:9001/uysalmustafa.com/wp-content/uploads/2019/04/ca-2016-1024x767.jpg?crop=0,100,150,30

Docs

Detailed documentation is available on https://developer.wordpress.com/docs/photon/

Credits

About

Dead-simple image resizer and optimizer on-the-fly


Languages

Language:PHP 99.4%Language:Dockerfile 0.6%