packages feed

typst-0.6.2: test/typ/visualize/image-01.typ

// Test configuring the size and fitting behaviour of images.

// Set width and height explicitly.
#box(image("/assets/files/rhino.png", width: 30pt))
#box(image("/assets/files/rhino.png", height: 30pt))

// Set width and height explicitly and force stretching.
#image("/assets/files/monkey.svg", width: 100%, height: 20pt, fit: "stretch")

// Make sure the bounding-box of the image is correct.
#align(bottom + right, image("/assets/files/tiger.jpg", width: 40pt, alt: "A tiger"))