How can I use function 'measure' inside 'grid' to align two images?

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)
1 Like