Skip to content

Commit

Permalink
Export load_image helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Nov 29, 2024
1 parent 3aab729 commit 33cbbd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 33cbbd7

Please sign in to comment.