Where is channel colormap/LUT info saved for tiff composites?

I’m using python (via tifffile) to save tiff stacks as composites. When I open these stacks in ImageJ, each channel is assigned a colormap/LUT, however they are not the color assignments that I would prefer. I’d like to specify each channel’s colormap when I’m saving the images using tifffile, however I can’t figure out how to do this.

My question is where is the information about channel colormap stored in a tiff stack?

If I open a tiff stack and manually change the colormap assignment for a channel, save, close, and then open it again, my manual colormap assignments are preserved. So I know this information must be stored in some metadata somewhere, but I can’t find it.

1 Like

Did you happen to figure this out? I am wondering the same thing right now.

The LUTs are contained in the ‘IJMetadata’ tag (50839). Tifffile parses the tag value into a dict: