Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fit" adjustment flexible upscale behavior #72

Open
harrislapiroff opened this issue Dec 21, 2014 · 0 comments
Open

"Fit" adjustment flexible upscale behavior #72

harrislapiroff opened this issue Dec 21, 2014 · 0 comments

Comments

@harrislapiroff
Copy link
Contributor

Currently the "Fit" adjustment will scale an image up if the image is smaller than the measurements provided. Oftentimes a template designer may want an image to fit within a container, but not scale it up if it's small. This should be an option.

Proposed solution: add an upscale argument to the "Fit" adjustment. (And maybe add it to some of the other adjustments as well.) E.g.,

{% adjust my_model.image "fit" width=200 height=200 upscale=False %}

(Not married to using False. Could use "no" or whatever.)

We could also change the default behavior to disable upscaling by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant