Created attachment 26973 [details] Adds GIF-relation and GIF-constant Embedded GIF images are not supported in XWPF, the relations are not recognized. This patch adds the relation constants and enables POI to recognize GIF images.
Any chance of a very simple word file, say with a .gif and a .jpg image in it? That'd then be used in a unit test for this new functionality
TestCase is in progress. Second patch about to come.
Created attachment 26974 [details] Add testcase for GIF support This patch contains a small Word DOCX (created with Word 2010), that contains some Lorem-Ipsum text and a GIF image. Testcase checks if the GIF-part is there, if it is related with the document.xml part and if it was created properly according to the XWPFRelation constants settings.
Created attachment 26978 [details] Missing line in constants-array in XWPFPictureData Sorry, missed to check the XWPFPictureData class when I created the patch. Here is the rest.
Any chance you could upload the test .docx file on its own? Only I can't get it out of the patch without it getting corrupted :/
Main patch applied, thanks. If you could upload just the sample file, I can do the test too
Created attachment 27003 [details] Test-Document as separate attachement Here is the test-data file. Sorry for the delay.
Thanks, test added in r1128301.