this.seekableInput = new MemoryCacheSeekableStream(
this.getInputStream());
}
final TIFFDecodeParam param = new TIFFDecodeParam();
final TIFFImage img = new TIFFImage(this.seekableInput, param, 0);
final TIFFDirectory dir = (TIFFDirectory) img.getProperty(
"tiff_directory");
TIFFField fld;
fld = dir.getField(TIFFImageDecoder.TIFF_IMAGE_WIDTH);
final long pixelWidth = fld.getAsLong(0);
this.pixelWidth = (int) pixelWidth;