I am trying to apply a .qml style from QGIS to each individual .tif image, contained within a folder, using python, but I can't get it to work. Is there a way to do this without loading the images into QGIS?
Here is my code which isn't working:
import glob
for layers in glob.glob('E:/Clipped/*.tif'):
layers.loadNamedStyle('E:/style.qml')