2010.05.11 07:00 "[Tiff] Merging multiple Group4 compressed TIFF files", by Oliver Geisen
Thank you Richard.
Yes, i want to combine several images of different size onto a bigger one, so pointing me to tiffcrop was a good idea. After getting a bit deeper into libtiff i guess it would be ok to read (or create) the background image (i call it "the pasteboard") into memory, so it does not matter if the TIFF organization was tiled or striped. Then read one image after the other an paste the lines at the location given. Therefore i need to access the image raster pixel in memory, calc the offset and overwrite the background image data with the read data from each image. The order i read the images is equal to their layer in the
pasteboard. After that i can write out the pasteboard image as a new file.
Now, is it ok (in question of speed) to use TIFFReadScanline or should use some lower level functions? i