Need to convert EMF to jpeg, png file formats using java

I need to convert emf, wmf formats to png or jpeg using full java code (since these formats are not supported in some browsers). Can anyone help me ..

Thanks in advance

+3
source share
4 answers

The fastest way is to use Imagemagick . It supports EMF and WMF formats. I have successfully used Imagemagick from Java using im4java , the Java interface for Imagemagick.

Alternatively, you can look at Jmagick , another Java interface for Imagemagick. I found this even more difficult to use.

+4
+1

Java- - TwelveMonkeys Batik WMF.

WMF Aldus Placable Header, ( MS Office). WMF: http://wvware.sourceforge.net/caolan/ora-wmf.html

A workplace is provided: https://github.com/haraldk/TwelveMonkeys/issues/35 to wrap the recent WMF with a “fake” Aldus Placable header and then transfer it to batik.

Otherwise, ImageMagick (IM) is a simple installer solution. By the way, even with recent IM, WMF cannot be properly converted to Linux (return a black image).

0
source

Source: https://habr.com/ru/post/1789201/


All Articles