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

How to generate a fixed size thumbnail without cropping or distorting? #392

Open
bluepuma77 opened this issue Jun 3, 2022 · 2 comments
Open

Comments

@bluepuma77
Copy link

I would like to create fixed size thumbnails of images. The /thumbnail endpoint seems to resize which distorts the image. The /fit endpoint will "fit" the image within the specified target size, but the image may be smaller. The image operations are not really explained in detail.

I would like to call /operation?width=200&height=200&url=https://via.placeholder.com/400x200.png?text=400x200 to get a 200x200 image with "fitted" original content that has the empty space filled with transparency (or a defined background color). Is that possible?

Imaginary-Thumbnails

@bluepuma77
Copy link
Author

bluepuma77 commented Jun 3, 2022

Related #358

@bergo
Copy link

bergo commented Dec 16, 2022

Had the same problem, used:/enlarge?width=430&height=430&extend=white&embed=true&nocrop=true&url=http://...
That works for me.

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

2 participants