@astrojs/image
should support sharp
crop strategies such as attention
to find high entropy spots to center on
#4341
Labels
pkg: image
Related to the `@astrojs/image` package (scope)
What version of
astro
are you using?1.0.5
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
astro-imagetools
supported choosing the crop-strategy thatsharp
takes when cropping an image, https://sharp.pixelplumbing.com/api-resize#resize, which meant that an image of a lighthouse centered on the lighthouse, while now it simply naively cropped from the bottom and the right of the image, cutting off the lighthouse.I realize that
astro-imagetools
is a community maintained library rather than a 1st party integration, but it'd be great to have feature parity to make migrating to@astrojs/image
seamlessLink to Minimal Reproducible Example
https://codesandbox.io/s/astro-4341-9rp30y?file=/src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: