if (imagePreloaderFound && (info.getMimeType().equals(ContentTypes.IMAGE_TIFF) || info.getMimeType().equals(ContentTypes.IMAGE_EMF2) // ImageInfo || info.getMimeType().equals(ContentTypes.IMAGE_WMF) || info.getMimeType().equals(ContentTypes.IMAGE_PNG) || info.getMimeType().equals(ContentTypes.IMAGE_JPEG) || info.getMimeType().equals(ContentTypes.IMAGE_GIF) || info.getMimeType().equals(ContentTypes.IMAGE_BMP))) { // If its a format Word supports natively, // do nothing here log.debug(".. supported natively by Word"); } else if (imageFile != null && bytes != null) { // otherwise (eg if its an EPS or PDF), try to convert it // Although the Word UI suggests you can embed an EPS // directly, Word actually converts it to an EMF; // Word is unable to read a plain EPS image part.