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

Comments

@andrieslouw
Copy link
Member

@andrieslouw andrieslouw commented Mar 10, 2019

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

@andrieslouw andrieslouw commented Mar 10, 2019

@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.

Loading

@kleisauke
Copy link
Member

@kleisauke kleisauke commented Sep 16, 2019

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.

Loading

@andrieslouw
Copy link
Member Author

@andrieslouw andrieslouw commented Dec 16, 2019

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

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants