private static int extractSampleFormat(final TiffDirectory directory) throws ImagingException {
        final short[] sSampleFmt = directory.getFieldValue(TiffTagConstants.TIFF_TAG_SAMPLE_FORMAT, false);
        if (sSampleFmt != null && sSampleFmt.length > 0) {
            return sSampleFmt[0];
        }
        return 0; // unspecified format
    }
Gets the width of individual tiles. Note that if the overall image width is not a multiple of the tile width, then the last column of tiles may
extend beyond the image width.

@return an integer value greater than zero
src/main/java/org/apache/commons/imaging/formats/tiff/AbstractTiffImageData.java