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
Next crops images - great! It doesn't do so very artistically...
Can nextjs ship something a bit smarter in its cropping algorithm?
Some kind of API to extend next/image's cropping could be enough
A "dumber" solution could be adding a focal point or gravity prop for cropping.
Non-Goals
I don't want to use Cloudinary - I can do that already, and some clients (most of them) can't use that.
I don't want to use any external hosted tools - I'm asking for this to be built in to nextjs, or something that can be added to standalone instances.
A product from Vercel that uses Vercel's AI would be nice for Vercel deploys, but I'm really looking for something that can be used in standalone nextjs deployments.
Background
Going between break points, where maybe you have a very wide short image for a banner header, to mobile, which maybe crops closer to square - you can get some pretty ugly results. There's a lot of content out there on this topic.
Cloudinary has a "smart" crop feature, based on (from a quick google) saliency algorithm? mixed with some AI stuff?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Going between break points, where maybe you have a very wide short image for a banner header, to mobile, which maybe crops closer to square - you can get some pretty ugly results. There's a lot of content out there on this topic.
Cloudinary has a "smart" crop feature, based on (from a quick google) saliency algorithm? mixed with some AI stuff?
Proposal
There are open source tools (sharp support) that seem to be able to do something like this.
Beta Was this translation helpful? Give feedback.
All reactions