en

PR #5632 Include images from raw pixmaps and more

Published At: 2025-01-31 Tags: pr

image can now be created from pixmaps and supports specification of encoding formats, ICC profiles, and more. Additionally, you can now use the scaling parameter to control how viewers should scale the image (smooth or pixelated).

typ
1
#image(
2
bytes(range(16).map(x => x * 16)),
3
format: (
4
encoding: "luma8",
5
width: 4,
6
height: 4,
7
),
8
// auto, "pixelated", "smooth"
9
scaling: "pixelated",
10
width: 3cm,
11
icc: auto,
12
)