Summary: | XSLFPictureData is missing TIFF support | ||
---|---|---|---|
Product: | POI | Reporter: | Jens Popp <jens.popp> |
Component: | XSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 3.14-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
Tiff file for test
JUnit Test |
Description
Jens Popp
2016-06-22 15:00:22 UTC
Just adding @Override public PictureType getType() { ... } else if (XSLFRelation.IMAGE_TIFF.getContentType().equals(ct)) { return PictureType.TIFF; } else { return null; } } and /* package */ static XSLFRelation getRelationForType(PictureType pt) { switch (pt) { case EMF: ... case TIFF: return XSLFRelation.IMAGE_TIFF; default: return null; } } Solves the problem Any chance you could create a very small and simple .pptx file with a tiff image in, and upload it here along with some simple code that triggers this exception? We can then use that to test your patch, and also to verify it stays fixed into the future! Created attachment 33972 [details]
Tiff file for test
Created attachment 33973 [details]
JUnit Test
|