From 33cbbd7d8b87a637f5744c6e6b73b1605445ffdd Mon Sep 17 00:00:00 2001 From: Joshua Lochner Date: Fri, 29 Nov 2024 16:18:50 +0000 Subject: [PATCH] Export `load_image` helper function --- src/utils/image.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/image.js b/src/utils/image.js index 04562592a..37c812561 100644 --- a/src/utils/image.js +++ b/src/utils/image.js @@ -794,3 +794,8 @@ export class RawImage { }); } } + +/** + * Helper function to load an image from a URL, path, etc. + */ +export const load_image = RawImage.read.bind(RawImage);