Don't enlarge images if smaller than the dimensions

This commit is contained in:
Simon Conseil
2013-04-29 23:09:27 +02:00
parent 15692e9f94
commit a72722a5cd

View File

@@ -48,7 +48,7 @@ def generate_image(source, outname, size, format, options=None,
pass
# Run the other processors
processors = [ResizeToFill(*size)]
processors = [ResizeToFill(*size, upscale=False)]
img = ProcessorPipeline(processors).process(img)
if copyright_text: