I need to create a multi layer tif and when I open in photoshop in need to be as separated layers like in the picture:
I need to do it without photoshop so I though so that I can do with Wand in python:
from wand.image import Image
with Image(filename="./GPD_TEST_Product.png") as img:
img.read(filename="./GPD_TEST_Reflection.png")
img.read(filename="./GPD_TEST_Shadow.png")
img.read(filename="./GPD_TEST_Background.png")
img.save(filename="final.tif")
but when I open it with photoshop I got:
but when I open it with preview on mac I can see the layers…
My other idea is to create a psd with layers and try to convert it to .tif with imagemagic, but still when I open it with photoshop, is merged.
here is the file which I’m working on:
https://drive.google.com/drive/folders/1ioWG2rJ32FVstUYJK8ITuhmGSUr7I_Ps?fbclid=IwAR1HtNsChsr6befuUTPHklqKREtwxCMLk39cRhbeshio_MU0fGU-P35kxlU
Any help will be appreciate.
2
Answers
If anyone need generating tiff with layers and thumbnail is not white background but composite image here is my solution:
What do you think about it?
The layer and thumbnail image and metadata of layered TIFF files are stored in the ImageResources (#34377) and ImageSourceData (#37724) TIFF tags. The psdtags Python library can read and write those tags but creating the tags from scratch requires knowledge of the format. Something like this should work (I don’t have Photoshop to verify):