on-internet
← Community

Getting compression information of a .tif file in python

Stack Overflow ·

I'm currently writing a script to batch compress a bunch of .tif files in python, however some of them are already compressed and some of them aren't. If you go into the properties of a .tif file you can see what compression, if any, is already applied to the file. How can I check this metadata so I can apply some if/then logic in my script to determine whether a .tif file is compressed?

Comments

Sign in or sign up to comment and upvote.

No comments yet.