so it’s a fixed bug, or a regression. or whatever tiff library was upgraded and that changed the behavior.
you need to determine the behavior when you use the same version in both languages.
please use IMREAD_UNCHANGED
instead of the magic constant -1.