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

Open
andrieslouw opened this issue Mar 10, 2019 · 2 comments

Comments

@andrieslouw
Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

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.

@kleisauke

This comment has been minimized.

Copy link
Member

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.

@kleisauke kleisauke added the completed label Sep 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.