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

Resizing Options #174

Open
seivad opened this issue May 2, 2024 · 0 comments
Open

Resizing Options #174

seivad opened this issue May 2, 2024 · 0 comments

Comments

@seivad
Copy link

seivad commented May 2, 2024

Hey mate great package, I've started using it as a solution for Cloudflare Workers because I couldn't get Sharp to work there because of it's dependencies.

Is there something I am missing with the resize() function to get it to resize from middle out? I guess similar to fit() in PHP's intervention image library where the total image width x height are set and the image is either scaled down from the centre of it to be within those bounds or scaled up to also be within those bounds? Currently it'll just squish the image into the provided dimensions but it can distort the image.

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

1 participant