EMF, WMF and PICT files stored within Word documents are often compressed to save space. In this situation, Picture.getContent() returns the compressed data with a bunch of header crud. Interestingly, I've found EMF and WMF files stored without compression so it may also be possible to find a BMP file with compression. I've been working on a fix for this one already so don't anyone else go rushing to fix it, please. This bug is to track the fact that it's an issue in case anyone else runs into it. :-)
Created attachment 19168 [details] Patch to support compressed images and detect EMF, WMF image types This patch comes with a unit test and doesn't break the existing tests, so it should be committed pretty quickly, right? :-)
Alas you patch doesn't contain the test images, as svn diff doesn't work like that :/ Any chance you could zip up your new test images, and attach the zip file to the bug? Otherwise, the patch looks fine (though I'll have to trust you that it actually works!)
Created attachment 19189 [details] vector_image.doc
Created attachment 19190 [details] vector_image.emf Both files are attached now. Guess I'm too used to some other version control system where the diffs do include the binaries. :-)
Thanks for this, I've applied the patch