Table of Contents

Tifffile

Install

pip install tifffile
python
import tifffile

Sample

Loading Image

img_array = tifffile.imread("input.tif")

Extracting Alpha Channel

img_array = tifffile.imread("input.tif")
img_array_alpha = img_array[..., 1]

References

https://github.com/cgohlke/tifffile
https://pypi.org/project/tifffile/