Quick image compressor container using Pillow.
Use docker-compose build
to build up the image then put the images you want to compress in the input
folder.
Use docker-compose up
to compress images from /input/
folder and get them from /output/
folder.
You can also directly use the scripts from /src/
. Don't forget to create /input/
and /output/
folders at the same level as /src/
and put the images you want to process into /input/
.
Used to have output informations.
Resize image from the max heightyou want for your pictures.
Resize image from the max width you want for your pictures.
Resize image based on a ratio.
Set the quality of compression (default to 65).
Note that you can use --max-height
and --max-width
at same time to force pictures to be under a determined dimensions.
Note that you can't use --max-*
with --ratio
.