*/
public RenderedImage getPreviewImage( ImageInfo imageInfo, int maxWidth,
int maxHeight )
throws BadImageFileException, IOException, UnknownImageTypeException
{
final RenderedImage image = TIFFImageType.getJPEGInterchangeImage(
imageInfo, maxWidth, maxHeight
);
return image != null &&
// The following is a hack to support NRW files
image.getWidth() > 300 &&
image.getHeight() > 300 ?
image : super.getPreviewImage( imageInfo, maxWidth, maxHeight );
}