Hi,
I have a image in a content struct :
content.header_image type is Option<Vec< u8>>
I can’t change this type.
I would like to decode this image in my template. But I don’t find how to convert it in bytes or string as asked…
#if content.header_image != none [
#let header_image = content.header_image.as_slice(); // as_slice exists in rust but not in typst...
#image.decode(header_image, height: 40pt)
]
Can you help me if there is a way to use an image from a vec< u8> type ?