super.setNodeAttributes(path);
if (path.isDirectory()) {
return;
}
try {
ImageProperties p = ImageUtils.getImageProperties(path);
if (p != null) {
if (getLogger().isDebugEnabled()) {
getLogger().debug(String.valueOf(path) + " = " + String.valueOf(p));
}
attributes.addAttribute("", IMAGE_WIDTH_ATTR_NAME, IMAGE_WIDTH_ATTR_NAME, "CDATA", String.valueOf(p.width));