throws IOException, ImageReadException, IllegalAccessException,
IllegalArgumentException, InvocationTargetException
{
Map params = new HashMap();
boolean ignoreImageData = isPhilHarveyTestImage(imageFile);
ImageFormat imageFormat = Sanselan.guessFormat(imageFile);
if (imageFormat.equals(ImageFormat.IMAGE_FORMAT_TIFF)
|| imageFormat.equals(ImageFormat.IMAGE_FORMAT_JPEG))
params
.put(PARAM_KEY_READ_THUMBNAILS, new Boolean(
!ignoreImageData));
ImageInfo imageInfoFile = Sanselan.getImageInfo(imageFile, params);