This may be very silly, but how can I get the image dimensions after having loaded an image? I need them to do some calculations on the svg overlays.
Assuming you just have a single image, it would be:
viewer.world.getItemAt(0).getContentSize();
That gets you the actual pixel dimensions of the image, not its location in the viewport.
Most helpful comment
Assuming you just have a single image, it would be:
That gets you the actual pixel dimensions of the image, not its location in the viewport.