2020.02.10 16:05 "[Tiff] How to make tiff rotation faster", by V. Krishna Karthik

2020.02.10 16:05 "[Tiff] How to make tiff rotation faster", by V. Krishna Karthik

When compared to irfanview the rotation and saving is faster when compared to libtiff. I use tiffcrop to rotate and save tif.

Here are the tiff header of the original tif:

TIFF Directory at offset 0xafac5a (11512922)
    Image Width: 28400 Image Length: 34750
    Resolution: 1270, 1270 pixels/inch
    Bits/Sample: 1
    Compression Scheme: CCITT Group 4
    Photometric Interpretation: min-is-white
    Orientation: row 0 rhs, col 0 top
    Samples/Pixel: 1
    Rows/Strip: 118
    Planar Configuration: single image plane

and the rotated by the properitery software.

TIFF Directory at offset 0xa667a2 (10905506)
    Image Width: 34750 Image Length: 28400
    Resolution: 1270, 1270 pixels/inch
    Bits/Sample: 1
    Compression Scheme: CCITT Group 4
    Photometric Interpretation: min-is-white
    Orientation: row 0 top, col 0 lhs
    Samples/Pixel: 1
    Rows/Strip: 2368
    Planar Configuration: single image plane

When compared speed with this software for 42 images like this it takes only 3 min to complete. whereas libtiff tiffcrop takes 25 min to complete.

How to make it faster like change in the tiff_tag and image dimensions? I already used tiffset to change orientation. but the Image width and Length are not interchanged. So the proprietary program not applying its function.

Any help