-
Notifications
You must be signed in to change notification settings - Fork 513
Description
Is your feature request related to a problem? Please describe.
When using Sanity as CMS for websites, it's useful to ensure the images loaded in the Studio have enough resolution to be presented with enough quality in the website.
Usually what we do is add a description of the recommended resolution to use to the field, and this worked fine as editors can check the resolution before uploading.
But now we're starting to use the hotspot/crop functionality, which should allow editors to add images larger than needed and crop them in the hotspot/crop modal, but the editor has no way of knowing what size the cropped image has left, and may end up cropping too much and being left with an image with too low resolution.
Describe the solution you'd like
Display in the hotspot/crop modal what resolution the cropped image has.
Describe alternatives you've considered
- Show the image resolution (with and without crop applied) in the image field itself. This could be optional (we activate it in the schema if we want), but would be a nice extra, though it would still be useful to have the resolution while cropping, not just after.
- (no new feature needed) We can use a validation to warn if they've cut the image too much (i.e. it has lower resolution than the recommended). This is also a nice extra which we may end up implementing, but without displaying the resolution while cropping, editors would be cutting blind with only the warning as their guide.
- A related feature would be the ability to configure aspect ratios for cropping, and maybe even setting a minimum width/height for the image to prevent users from cropping too much (not sure I want to remove this much control from editors though).