Fields
width
Width of the image, or 0 until it has decoded. Web runtimes and the
CLI preview decode images after init runs, so read it when you use
it, not once in init.
height
Height of the image, or 0 until it has decoded. Web runtimes and the
CLI preview decode images after init runs, so read it when you use
it, not once in init.
Methods
view
ImageAsset’s view samples its pixels once the image has decoded;
on the web that is after init, so take the view once width is
above 0.