Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Image optimizer docker images by Kernix

This docker will allow you to optimize jpeg and png images with the mogrify, pngquant and jpegtran conversion tools.

Dockerfiles

Dockerfiles are available at https://github.com/kernix/image-optimizer

Usage

docker run --rm -v "/tmp/images:/var/www" kernix/image-optimizer:1.0 

When /tmp/images is the local images folder.

OptionDescription
--max-formatMax image format [WidthxHeight] (default = 1000x800)
--max-memoryMax memory usage (default : 2GiB)
--max-disc-spaceMax disk space usage (default : 1GiB)
--jpg-qualityJPG quality to optimize JPG/JPEG (ex. : 85)
--png-qualityPNG quality to optimize PNG (ex. : 70-80)
-h -–helpScript help
-f –-forceForce scripts for all without taking in considiration update time
docker run --rm -v "/tmp/images:/var/www" kernix/image-optimizer:1.0 --max-format=1000x800 --png-quality=70-80 --jpg-quality=85 --max-memory=2GiB --max-disc-space=1GiB

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages