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

Letterbox without oversampling #173

Closed
andrieslouw opened this issue Mar 10, 2019 · 3 comments
Closed

Letterbox without oversampling #173

andrieslouw opened this issue Mar 10, 2019 · 3 comments
Assignees
Labels
completed Feature or request has been completed enhancement New feature or request

Comments

@andrieslouw
Copy link
Member

Hi, is there a way to have letterbox (adding margins to fit the requested ratio) but without oversampling the image if the requested size is larger than that of the original?

Originally posted by @ndavoust in #80 (comment)

@andrieslouw
Copy link
Member Author

@ndavoust : Letterboxing without oversampling is something we probably will implement in the next API (sneak preview here: https://t0.nl/docs/transformation.html#without-enlargement). We're not really proud on the current naming of &t=[fit|fitup|square|squaredown|absolute|letterbox] and will try to streamline and extend the transformations. This will take some time however.

@andrieslouw andrieslouw added the enhancement New feature or request label Mar 10, 2019
@kleisauke
Copy link
Member

This has been implemented in API version 5 (#189). See:
https://images.weserv.nl/news/2019/09/01/introducing-api-5/#css-inspired-fit-parameters
https://images.weserv.nl/docs/fit.html#without-enlargement

Please let me know if you run into any issues.

@kleisauke kleisauke added the completed Feature or request has been completed label Sep 16, 2019
@andrieslouw
Copy link
Member Author

Closing due to inactivity. Let us know if there is anything we can do to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed Feature or request has been completed enhancement New feature or request
Development

No branches or pull requests

2 participants