lektor: don't upscale images during thumbnail creation
There should be an option to not create new images when the thumbnail would generate an upscaled version, but return the original image instance instead.
I propose an upscale=False
kwarg to image.thumbnail()
, and plan to default it to True
at some point in the future.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (16 by maintainers)
Oops, brain fart. I meant default
True
initially to preserve backwards-compatibility, and change it toFalse
in the future. Sorry for the confusion.Ideally there would be a nice deprecation warning for at least one version before that, django-style.