In JS I'm loading in images (which will be displayed on a canvas). I need to read the width and height from these images, and send that data to Rust.
Do I just bundle the images' data in JS, to then send that; array?, object?, array of objects? to a Rust function at once?
Is this a good way?