Multipart tiff conversion to include in pdf

⚓ Rust    📅 2025-10-02    👤 surdeus    👁️ 8      

surdeus

Hi,

I am actually working on a document generator that use typst.
Typst allows only some kind of format for image like "png", "jpg", "gif", "svg".

I need to include a tif in the beginning of my generated pdf.
I success to do that using this crate : image - Rust

The problem is now that I can have multipart tif.
I was thinking to convert my tif to gif because they are format with multilayer both of them...

But, in my document I have only the first image with the conversion offered by image crate.

So I wonder if you know a good way to extract all the image and add them to the pdf.
I was thinking, maybe is there a crate like gif - Rust for extract layer in tif (but I don't found for now)?
Or maybe, we can convert a multipart tif in pdf... Then convert the pdf in some images. Then add the images in my main pdf... ?

Thank you in advance for your time.

1 post - 1 participant

Read full topic

🏷️ Rust_feed