I have a program that saves large multi-page tiff files (multiple frames per file). This is data streamed from a high speed (250 fps) camera, and I generate files up to just under 2 GB in size. Normally, to maximize throughput, I save the data uncompressed, using a single strip for each image. Irfanview has no problems opening and displaying these files.
At slower frame rates I will save the data compressed (tiff with LZW) to save space. I keep the number of frames in the file the same, so that when uncompressed, the file size would still be below 2 GB. If I strip the data with the usual 8KB strips, again Irfanview has no problems. However, if I write compressed data with one strip per frame, Irfanview has problems displaying these. The initial frames are displayed as all black, then the rest of the frames display correctly. For a file which is close to 2 GB when uncompressed (about 1 GB compressed), it displays around the first 400 frames as black, out of 3500.
This is not a big issue for me (now that I understand it), because I can write striped data when using compression. Compressing the data is so slow that any difference between striped and non-striped is irrelevant.
I am not sure you want to bother looking into this, as I am probably the only user who has or will run into it. If you do want to look into this, do you have a way to generate large multi-page tiff files, with and without compression, and with and without stripping? If not, I can try to figure out how to get you a test file, and/or copies of the libtiff utilities.
Thanks for your excellent program
Don
At slower frame rates I will save the data compressed (tiff with LZW) to save space. I keep the number of frames in the file the same, so that when uncompressed, the file size would still be below 2 GB. If I strip the data with the usual 8KB strips, again Irfanview has no problems. However, if I write compressed data with one strip per frame, Irfanview has problems displaying these. The initial frames are displayed as all black, then the rest of the frames display correctly. For a file which is close to 2 GB when uncompressed (about 1 GB compressed), it displays around the first 400 frames as black, out of 3500.
This is not a big issue for me (now that I understand it), because I can write striped data when using compression. Compressing the data is so slow that any difference between striped and non-striped is irrelevant.
I am not sure you want to bother looking into this, as I am probably the only user who has or will run into it. If you do want to look into this, do you have a way to generate large multi-page tiff files, with and without compression, and with and without stripping? If not, I can try to figure out how to get you a test file, and/or copies of the libtiff utilities.
Thanks for your excellent program
Don
Comment