Open rikusen0335 opened 1 month ago
Hi @rikusen0335 sorry you are running into this issue, I tried recreating this issue on the latest version of sanity but have not been able to successfully do so. Could you try updating to the latest version of sanity studio and see if this issue is still happening.
Yeah sure, bouta upgrade them.
@binoy14 Well I upgraded everything relates to sanity, but it still not fixed :(
❯ pnpm sanity versions
@sanity/cli (global) 3.47.1 (up to date)
@sanity/color-input 3.1.1 (up to date)
@sanity/demo 2.0.0 (up to date)
@sanity/icons 3.2.0 (up to date)
@sanity/image-url 1.0.2 (up to date)
@sanity/locale-ja-jp 1.1.4 (up to date)
@sanity/preview-url-secret 1.6.17 (up to date)
@sanity/react-loader 1.10.3 (up to date)
@sanity/ui 2.4.0 (up to date)
@sanity/vision 3.47.1 (up to date)
sanity 3.47.1 (up to date)
Hi @rikusen0335, could you share the content of the hotspot
and the crop
attributes on the image field for this document? You should be able to see them by inspecting the document from the Studio editing screen.
Also, what browser and version are you using?
@runeb Thank you for response.
Here's image
field includes hotspot
and crop
:
defineField({
name: 'coverImage',
title: 'カバー画像',
description: 'このプロジェクトのカバー画像。プロジェクト一覧や、トップページに表示される',
type: 'image',
options: {
hotspot: true,
},
validation: (rule) => rule.required(),
fields: [
defineField({
name: 'alt',
type: 'string',
title: 'Altテキスト',
description: '視覚障害者用の、読み上げソフトが読むテキスト。',
validation: (rule) => rule.required(),
}),
],
}),
Also I've got the issue with these browsers:
Firefox Developer Edition - 128.0b4 (64-bit)
Google Chrome - 126.0.6478.114 (Official Build) (arm64)
Safari - 17.4.1 (19618.1.15.11.14)
Describe the bug
As title says, preview shows old or wrong one and not the current cropping status. See screenshot to know more detail
To Reproduce
Steps to reproduce the behavior:
Just use hotspot & crop
Expected behavior
Preview respects current cropping and shows correct preview.
Screenshots![image](https://github.com/sanity-io/sanity/assets/19174234/1a9ccf97-535d-4dea-b1af-7f9b588fde4a)
Which versions of Sanity are you using?
What operating system are you using? Windows 11
Which versions of Node.js / npm are you running?
Additional context
Nothing
Security issue?
No.