From 620f3a57dd4c0695b3d129328f60593d33c0c633 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 2 May 2025 13:19:52 +0200 Subject: [PATCH] docs: clarified usage of createFromPath() (#46898) * docs: clarified usage of createFromPath() Co-authored-by: Yuri * Update docs/api/native-image.md Co-authored-by: Niklas Wenzel Co-authored-by: Yuri --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Yuri --- docs/api/native-image.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/native-image.md b/docs/api/native-image.md index 14ee825618c3..58c9dadfd3c0 100644 --- a/docs/api/native-image.md +++ b/docs/api/native-image.md @@ -142,8 +142,8 @@ Note: The Windows implementation will ignore `size.height` and scale the height Returns `NativeImage` -Creates a new `NativeImage` instance from a file located at `path`. This method -returns an empty image if the `path` does not exist, cannot be read, or is not +Creates a new `NativeImage` instance from an image file (e.g., PNG or JPEG) located at `path`. +This method returns an empty image if the `path` does not exist, cannot be read, or is not a valid image. ```js