symphonycms/jit_image_manipulation — pull request #48 by cbwl (2012-11-12 03:40:44+00:00)
Title: Option to prevent upscaling

I found this option useful for a project I'm working on, in which I don't want small images which are processed through jit transformations to be upscaled and anti-aliased.

A summary of changes:

- Add a checkbox option to the preferences page which disables upscaling
- Slight refactor of `lib/image.php` so that the sizes are calculated once
- Prevents upscaling for *all* images and for *all* image transformations when the option is set.

As long as the configuration option is not set, the behaviour of the extension should not have changed.