Sometimes I found very difficult to understand how to use typst…
Thank you, now I can have a image without deprecated decode like this :
#let i = image(bytes(img), format: "png")
#i
But I can access to its size… I wanted to display it to see but the document can be generated with this code :
#let width = context i.width
#width
or this
#context measure(i, width: 100pt)