* @param imageFile The file to read image data from
* @return The image data from the file
*/
private ImageData getImageData(File imageFile) {
String extension = IOUtils.getExtension(imageFile);
ImageProvider provider = (ImageProvider) providers.get(extension);
ImageData imageData = null;
if (provider != null) {
try {
imageData = provider.provideImage(imageFile);
} catch (IOException e) {
LOGGER.error("unexpected-ioexception",
e);
}
}