KalobTaulien / wagtail-tinypng

Lossless image minification using TinyPNG
10 stars 1 forks source link

Max crop settings #3

Closed KalobTaulien closed 5 years ago

KalobTaulien commented 5 years ago

Right now all images will be cropped to a max width of 2000px. I think this should be entirely optional on the next release.

It'd be great if there was a custom setting that could be set in base.py to set the max image width or height.

KalobTaulien commented 5 years ago

This feature was added. Images no longer resize to a maximum width of 2000px by default. You now how to set those settings using:

TINIFY_MAX_WIDTH = 2000
# Or
TINIFY_MAX_HEIGHT = 1000

A better write up can be found in the readme. https://github.com/KalobTaulien/wagtail-tinypng#settings