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

[FR] Countering limitations with Sharp Extract #1

Open
JeanLucEsser opened this issue Jul 14, 2022 · 0 comments
Open

[FR] Countering limitations with Sharp Extract #1

JeanLucEsser opened this issue Jul 14, 2022 · 0 comments

Comments

@JeanLucEsser
Copy link

JeanLucEsser commented Jul 14, 2022

Hi there,

I haven't had the time nor the opportunity to test this, but from what I understand of Sharp methods, wouldn't a combination of resize and extract allow for the current listed limitations of this transformer? With the help of some maths calculations and logics. (https://sharp.pixelplumbing.com/api-resize#extract)

That would be true for percentage focal points, cropOnly and cropZoom functionality.

Percentage focal points alone would be a huge win. First extract from the focal point up to the edges respecting the aspect ratio, then resize as if you were doing a fit. Again not tested, not sure it can be done, but from my understanding of what we can do with extract, seems doable.

@JeanLucEsser JeanLucEsser changed the title Filling limitations with Sharp Extract [FR] Countering limitations with Sharp Extract Jul 14, 2022
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