diff --git a/.changeset/whole-buckets-add.md b/.changeset/whole-buckets-add.md new file mode 100644 index 0000000000000..929cbe9fa7cbf --- /dev/null +++ b/.changeset/whole-buckets-add.md @@ -0,0 +1,6 @@ +--- +"@gradio/imageeditor": patch +"gradio": patch +--- + +fix:Ensure image editor crop and draw cursor works as expected when the scroll position changes diff --git a/gradio/components/image_editor.py b/gradio/components/image_editor.py index 12d7d3d25e480..52338606fcec6 100644 --- a/gradio/components/image_editor.py +++ b/gradio/components/image_editor.py @@ -68,8 +68,8 @@ def __post_init__(self): class ImageEditor(Component): """ Creates an image component that can be used to upload and edit images (as an input) or display images (as an output). - Preprocessing: passes the uploaded image as a ductionary of {numpy.array}, {PIL.Image} or {str} filepath depending on `type`. - Postprocessing: expects a ductinoary of {numpy.array}, {PIL.Image} or {str} or {pathlib.Path} filepath to an image and displays the image. + Preprocessing: passes the uploaded image as a dictionary of {numpy.array}, {PIL.Image} or {str} filepath depending on `type`. + Postprocessing: expects a dictionary of {numpy.array}, {PIL.Image} or {str} or {pathlib.Path} filepath to an image and displays the image. Examples-format: a {str} local filepath or URL to an image. Demos: image_mod, image_mod_default_image Guides: image-classification-in-pytorch, image-classification-in-tensorflow, image-classification-with-vision-transformers, building-a-pictionary_app, create-your-own-friends-with-a-gan diff --git a/js/imageeditor/shared/ImageEditor.svelte b/js/imageeditor/shared/ImageEditor.svelte index ee44e86a8601e..fa7a32f1c4215 100644 --- a/js/imageeditor/shared/ImageEditor.svelte +++ b/js/imageeditor/shared/ImageEditor.svelte @@ -308,6 +308,8 @@ } + get_dimensions(canvas_wrap, pixi_target)} /> +