java-mammoth icon indicating copy to clipboard operation
java-mammoth copied to clipboard

EMF image support

Open liuyunfeng2017 opened this issue 8 years ago • 3 comments

hi,Word conversion formula as a result <img src="data:image/x-wmf;base64,183GmgA...... HTML does not display the image

liuyunfeng2017 avatar Sep 06 '17 08:09 liuyunfeng2017

EMF images aren't directly supported. The issue for mammoth.js describes how you could implement your own image converter along with LibreOffice to add support, although the fidelity is reliant upon LibreOffice's implementation.

https://github.com/mwilliamson/mammoth.js/issues/36

mwilliamson avatar Sep 06 '17 14:09 mwilliamson

Thanks for your reply! I convert the results of the WMF format, I use Jsoup to convert the WMF PNG, image distortion, is there any way to directly output PNG

liuyunfeng2017 avatar Sep 08 '17 02:09 liuyunfeng2017

Mammoth doesn't do any additional processing of images, so if there's any distortion, it's most likely a result of either the conversion you're doing or whatever you're using to view the image.

On Thu, 07 Sep 2017 19:40:00 -0700 liuyunfeng2017 [email protected] wrote:

Thanks for your reply! I convert the results of the WMF format, I use Jsoup to convert the WMF PNG, image distortion, is there any way to directly output PNG

mwilliamson avatar Sep 08 '17 07:09 mwilliamson