The getType and getRelationForType methods of XSLFPictureData deliver null for the TIFF format since version 3.14. The addPicutre in e.g. XMLSlideShow throws an IllegalArgumentException if a TIFF image is passed. PictureData and XSLFRelation have TIFF as image type.
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
Thanks! Unit test added, and patch applied in r1749732.