ImageFolder.to_tiff

ImageFolder.to_tiff(filename)

Save the ImageArray as a tiff image with metadata.

Parameters

filename (str) – Filename to save file as.

Note

PIL can save in modes “L” (8bit unsigned int), “I” (32bit signed int), or “F” (32bit signed float). In general max info is preserved for “F” type so if forcetype is not specified then this is the default. For boolean type data mode “L” will suffice and this is chosen in all cases. The type name is added as a string to the metadata before saving.