It looks like this is your problem:
In short, you need to pull context
out of the image
function:
context image("image2.jpg", height: measure(image("image1.jpg")).height)
It looks like this is your problem:
In short, you need to pull context
out of the image
function:
context image("image2.jpg", height: measure(image("image1.jpg")).height)