Skip to content

Commit 33cbbd7

Browse files
committed
Export load_image helper function
1 parent 3aab729 commit 33cbbd7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/image.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,3 +794,8 @@ export class RawImage {
794794
});
795795
}
796796
}
797+
798+
/**
799+
* Helper function to load an image from a URL, path, etc.
800+
*/
801+
export const load_image = RawImage.read.bind(RawImage);

0 commit comments

Comments
 (0)