AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2022.12.09 01:29 "[Tiff] How to write multi-file TIFFs", by L. E. Segovia
2022.12.09 12:18 "Re: [Tiff] How to write multi-file TIFFs", by Paavo
2022.12.09 13:52 "Re: [Tiff] How to write multi-file TIFFs", by John
2022.12.10 02:16 "Re: [Tiff] How to write multi-file TIFFs", by L. E. Segovia
2022.12.10 02:33 "Re: [Tiff] How to write multi-file TIFFs", by Kemp Watson
2022.12.10 09:35 "Re: [Tiff] How to write multi-file TIFFs", by Paavo
2022.12.10 11:29 "Re: [Tiff] How to write multi-file TIFFs", by John
2022.12.10 12:16 "Re: [Tiff] How to write multi-file TIFFs", by L. E. Segovia
2022.12.10 12:44 "Re: [Tiff] How to write multi-file TIFFs", by John
2022.12.10 20:12 "Re: [Tiff] How to write multi-file TIFFs", by L. E. Segovia
2022.12.10 20:44 "Re: [Tiff] How to write multi-file TIFFs", by L. E. Segovia

2022.12.09 13:52 "Re: [Tiff] How to write multi-file TIFFs", by John

Hello amyspark,

My understanding is that you set the magic TIFFTAG_SUBIFD tag on a directory with an $n element array of offsets, all initialized to 0, and then the next $n TIFF directories you write will appear as subdirectories of this directory, with the offsets filled in for you.

Or that's what I did here and it seems to work for me:

https://github.com/libvips/libvips/blob/master/libvips/foreign/vips2tiff.c#L2127-L2141

John