A service to optimize jpg images with cjpeg
928
image-optimizer is a Docker image based on the latest Alpine linux to provide microservice of optimizing jpeg images.
Run image-optimizer with docker:
$ docker run \
-d \
-p 8080:8080 \
--name image-optimizer \
egorovli/image-optimizer
Or embed it into your docker-compose.yml:
version: '3'
services:
# ...
image-optimizer:
image: egorovli/image-optimizer
expose:
- "8080"
some-service:
# ...
links:
- image-optimizer
Configuration is supplied via environment variables and the supports the following options:
| Environment Variable | Type | Description | Default Value |
|---|---|---|---|
| ENV | string | Environment | production |
| PORT | int | Port to bind to | 8080 |
| HOST | string | Host to listen on | 0.0.0.0 |
| QUALITY | int | Default quality to use in cjpeg conversion | 80 |
| EXECUTABLE_PATH | string | Executable path to call | cjpeg |
Receives binary file and attempts to optimize it with cjpeg.
Get current status of the app.
Content type
Image
Digest
Size
6.5 MB
Last updated
almost 7 years ago
docker pull egorovli/image-optimizer