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

2020.02.12 16:17 "Re: [Tiff] How to make tiff rotation faster", by Bob Friesenhahn

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.

Your images are definitely on the large side. How much RAM does your computer have? Are you using 32-bit or 64-bit applications?

I doubt that the tiffcrop slowness has much to do with TIFF formatting. It likely has more to do with its internal image model, how much memory it decides to allocate (maybe 4 bytes per pixel, I am not sure), and the actual rotation algorithm used. If your system runs low on RAM and starts paging then the program will run much slower.

After testing with sample files, it seems to me that the performance problem is with libtiff's CCIT G4 decompression and compression codec so the problem would be intrinsic to software using libtiff and not to be blamed on tiffcrop. This codec has been mentioned before as not performing nearly as well as some other implementations.

I observed that tiffcrop did very well on memory usage. Given sufficient RAM, I observed that GraphicsMagick provided better overall performance but at the expense of extreme memory usage.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt