From 99a296cd4415248056fd6bee97985b1a9e9af682 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 19 Aug 2024 16:54:45 +0200 Subject: [PATCH] Note about image sizes in MediaUpload::onSelect Document that not all image sizes are available when an image has been selected in MediaUpload. --- packages/block-editor/src/components/media-upload/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/block-editor/src/components/media-upload/README.md b/packages/block-editor/src/components/media-upload/README.md index 592d64e42f497d..27bbc93d8a2b65 100644 --- a/packages/block-editor/src/components/media-upload/README.md +++ b/packages/block-editor/src/components/media-upload/README.md @@ -105,6 +105,8 @@ Callback called when the media modal is closed after media is selected. This is called subsequent to `onClose` when media is selected. The selected media are passed as an argument. +The `image.sizes.full` resolution does always exist. Other defined sizes are only available when the image is larger and thus could be scaled down. + - Type: `Function` - Required: Yes - Platform: Web | Mobile