converting tiff to jpeg in python
I have successfully solved the issue. I posted the code to read the tiff files in a folder and convert into jpeg automatically. import os from PIL import Image yourpath = os.getcwd() for root, dirs, files in os.walk(yourpath, topdown=False): for name in files: print(os.path.join(root, name)) if os.path.splitext(os.path.join(root, name))[1].lower() == “.tiff”: if os.path.isfile(os.path.splitext(os.path.join(root, name))[0] + “.jpg”): … Read more