}
catch ( ColorProfileException e ) {
profile = null;
}
final LCJPEGReader reader = new LCJPEGReader(
imageInfo.getFile().getAbsolutePath(), maxWidth, maxHeight,
(JPEGImageInfo)imageInfo.getAuxiliaryInfo()
);
final PlanarImage image = reader.getImage(
thread, profile != null ? new ICC_ColorSpace( profile ) : null
);
assert image instanceof CachedImage
&& image.getTileWidth() == JAIContext.TILE_WIDTH