It seems that TiffImagePlugin does not allow me to connect additional decompressors. Replacing TiffImageFile._decoder with a decoder dictionary may work, but you will need to examine and test each version of PIL to make sure that it does not break. This level of service is just as bad as a custom PIL. I appreciate the design of tifffile.py for using the dictionary of decoders. This made it very easy.
The final decision? I could not connect my code to PIL. I had to use PIL.Image.fromarray() to use my unpacked images.
source share