πŸ‘€ See Sanity in action: Watch product demo now β†’

React-Next-Sanity Project - Images Loaded in a Content Block are not Respecting the Crop/Hotspot Alterations

1 replies
Last updated: Aug 15, 2022
Hey team πŸ™‚
I'm having an issue in my react-next-sanity project where images loaded in a content block are not respecting the crop/hotspot alterations.

I've spent hours searching, and have been trying to set the .focalpoint, .crop, .fit attributes on the urlFor which doesn't seem to be making a difference.

the hotspot and crop values are coming in under the
value
prop. But as per the docs , i shouldn't need to do anything but set the width? But possibly this differs if i am using next/image ?
Any help is appreciated!
Aug 15, 2022, 11:00 AM
Actually it appears this is working. I will leave this post here in case it helps anyone else searching the post history
Aug 15, 2022, 11:18 AM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in