also catches error when jimi not in classpath
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195107
13f79535-47bb-0310-9956-
ffa450edef68
} else {
this.m_isTransparent = false;
}
- } catch (Exception ex) {
+ } catch (Throwable ex) {
log.error("Error while loading image "
+ this.m_href.toString(), ex);
return;
// howto create CMYK color space
this.m_colorSpace = ColorSpace.getInstance(
ColorSpace.CS_CIEXYZ);
+ } else {
+ ua.getLogger().error("Unknown ColorSpace for image: "
+ + this.m_href.toString());
+ return false;
}
found_dimensions = true;
return false;
}
iccProfile = ICC_Profile.getInstance(iccStream.toByteArray());
+ } else if(this.m_colorSpace == null) {
+ ua.getLogger().error("ColorSpace not specified for image: "
+ + this.m_href.toString());
+ return false;
}
return true;
}