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

Opposite of inset? #484

Closed
appeltaert opened this issue Aug 26, 2014 · 3 comments
Closed

Opposite of inset? #484

appeltaert opened this issue Aug 26, 2014 · 3 comments

Comments

@appeltaert
Copy link

To take the docs as an example:

Inset maintains aspect and keeps the dimensions within boundaries, but what if i want the opposite? I want one side to be exceeding, without cropping(so no outbound). So 50x30 > min: 40x40 = something like 60x40.

Way to do this right now with some chain combination? Did some digging into the code but it doesnt seem possible?

Probably doing something wrong, pretty common technique for example background fillers.

Upscale (even with the over-complex description "expanded to the requested size by interpolation of its content.") doesn't seem to do it looking at the code. There still is a widthxheight condition check returning false if one side is exceeding.

@recon
Copy link

recon commented Sep 2, 2014

Wouldn't the relative_resize do it?

filters:
        relative_resize: { heighten: 40 }

This way, heighten would upscale or downscale to strictly 40px height in every scenario, while the other dimension will depend solely on this one, only to maintain the ratio.

@appeltaert
Copy link
Author

Not really, because if the width in this situation would be smaller it would stay the smallest dimension. So this would require you to know the width and height in order to know which one to use.

Technically its possible i guess, but not with pure config files. But so would be thumbnails without the inset option.

@michellesanver
Copy link
Contributor

@appeltaert I am going through all issues to sort and prioritise. Is this still an issue for you? Since this is so old, please open a new issue if that is the case and we will prioritise accordingly and look into the opposite of inset, closing this for now. Thanks a lot! :)

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

3 participants