I'm trying to find a way to stack multiple images into layers of a TIFF image so that Photoshop will recognise those images as separate layers in Python. I tried creating multiple pages TIFF as described here But Photoshop only recognises one layer. Also Tried using this code, but also got only one layer
import glob
from PIL import Image
FRAMES = []
FIRST_SIZE = None
OUT_NAME = "test.tiff"
filelist = glob.glob("photos/*")
for i in filelist:
img = Image.open(i)
FRAMES.append(img)
FRAMES[0].save(OUT_NAME, save_all=True, append_images=FRAMES)
Please help me.