You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
JeanLucEsser
changed the title
Filling limitations with Sharp Extract
[FR] Countering limitations with Sharp Extract
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.
The text was updated successfully, but these errors were encountered: