We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image export failed exception

Hi there,

We are using aspose-imaging-18.6.1-jdk16.jar for converting the EMF images to SVG format. We are getting the below exception while we try to convert the EMF images.

com.aspose.imaging.coreexceptions.ImageSaveException: Image export failed. —> class com.aspose.imaging.internal.Exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value
com.aspose.imaging.fileformats.emf.emfplus.records.EmfPlusFillPie.setStartAngle(Unknown Source)
com.aspose.imaging.internal.eF.w.a(Unknown Source)
com.aspose.imaging.internal.eE.c.a(Unknown Source)
com.aspose.imaging.internal.eA.j.a(Unknown Source)
com.aspose.imaging.internal.eA.p.a(Unknown Source)
com.aspose.imaging.internal.eM.a.c(Unknown Source)
com.aspose.imaging.internal.dV.q.a(Unknown Source)
com.aspose.imaging.internal.dV.q.a(Unknown Source)
com.aspose.imaging.internal.dV.q.a(Unknown Source)
com.aspose.imaging.internal.dV.q.a(Unknown Source)
com.aspose.imaging.internal.dV.D.b(Unknown Source)
com.aspose.imaging.internal.dV.a.a(Unknown Source)
com.aspose.imaging.internal.dV.a.export(Unknown Source)
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.Image.save(Unknown Source)
com.aspose.imaging.Image.save(Unknown Source)

We are using the below code snippet for converting.

   String dataDir = "C:\\ media\\";
   Image image = Image.load(dataDir + "image7.emf", new MetafileLoadOptions(true));
   try {
// Create an instance of EmfRasterizationOptions class and set
// different options
final EmfRasterizationOptions emfRasterizationOptions = new EmfRasterizationOptions();
// convert it to SVG format.
image.save(baseDir + file.getName()+".svg", new SvgOptions() {
} finally {

images-01.zip (133.2 KB)


I have worked with sample files shared by you and have been able to observe the issue. An issue with ID IMAGINGJAVA-1024 has been created in our issue tracking system to investigate the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

The issues you have found earlier (filed as IMAGINGJAVA-1024) have been fixed in this update.