From an email from Ricky: OpenTiff treats 4 specific metadata objects as vectors regardless of their
count (all other keys are only treated as vectors when their count is >1. These 4 "special" keys are:
TIFFTAG_STRIPOFFSETS, TIFFTAG_STRIPBYTECOUNTS, TIFFTAG_TILEOFFSETS and
TIFFTAG_TILEBYTECOUNTS. This needs to be taken into account in Pmt because it only treats
metadata objects with count>1 as vectors. So, for example if it runs into the case where the count in
TIFFTAG_STRIPOFFSETS is =1, Pmt is going to try to cast the value data into an unsignedInt when it
really is a vector and bad things will happen. This case hasn't been seen in Pmt, because OpenTiff by
default has "strip chopping" enabled for files opened in ReadOnly mode. And, therefore, even if the
original image had only one strip, it will get chopped into multiple strips when opening the file in OpenExif
and the count of TIFFTAG_STRIPOFFSETS and TIFFTAG_STRIPBYTECOUNTS will be >1.
-----------------------------
Since this poses no current issues, we will not fix this for now. This only needs to be addressed if strip
chopping is ever turned off in OpenTiff.