SVG to Image Conversion Issue

Hello @atir.tahir
Please let us know is there any update on this SVG to image conversion issue

@Pratiksha_Thakurdas

Your ticket is still in progress.

Hi @atir.tahir ,
kindly please let us know is there any update on this issue?

Thanks.

@Mahesh_Amle

We anticipate resolving this issue by the end of June 2023. We will keep you informed of any additional updates or progress.

Hi @atir.tahir ,
Is there Any Update about this issue? (SVG to jpg conversion)

@Vaibhavj22

This ticket is still under progress. We’ll notify you as soon as there’s any update.

@atir.tahir is there any Update about SVG to image conversion issue?

thanks.

@Vaibhavj22

Please try API version 23.10 and let us know if this issue persists.

Hi @atir.tahir, if we try to update any version above 22.8.1 we are getting error like. → class com.groupdocs.conversion.legacy.exceptions.GroupDocsException: class com.groupdocs.conversion.internal.c.a.i.coreexceptions.c: Invalid license signature. Please make sure the license file was not modified.
com.groupdocs.conversion.internal.c.a.i.License$a.a(Unknown Source)
com.groupdocs.conversion.internal.c.a.i.License.setLicense(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.l.aspose.a.ED(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.l.aspose.a.L(Unknown Source)
com.groupdocs.conversion.internal.c.g.f.common.d.zZE(Unknown Source)

can you please suggest how we solve this issue?

Thank You!

@Vaibhavj22

Could you please share your license/subscription expiry date and the sample conversion code?

@atir.tahir
I have shared our license/subscription expiry date and the sample conversion code below please check.

Summary

20240811
3.0

We tried to convert the provided SVG to JPG using following Java code: →
//Java code
//specify output folder
String outputFolder = “D:/”;
//specify output file template
String outputFileTemplate = new File(outputFolder, “converted-page-%d.jpg”).getPath();
try (FileOutputStream getPageStream = new FileOutputStream(String.format(outputFileTemplate, 1))) {
//pass the SVG file to the Converter class
Converter converter = new Converter(“D:/input.svg”);
ImageConvertOptions options = new ImageConvertOptions();
//set image type
options.setFormat(ImageFileType.Jpg);
options.setPagesCount(1);
converter.convert(getPageStream, options);
} catch (IOException e) {
System.out.println(e.getMessage());
}

Thanks!

@Vaibhavj22

Could you please also share the license file and the SVG in a private message? Also specify if you are using any other API within the application (e.g. any other Aspose API).

@Vaibhavj22 @BHP_Dev

We cannot reproduce this issue CONVERSIONJAVA-1597 using API version 23.11.

1 Like

Thank you @atir.tahir we will upgrade out GroupDocs version and check this fix.

Hi @atir.tahir,
After upgrade facing one small issue apart from this rest is working fine
“setFontDirectories() has private access in com.groupdocs.conversion.ConverterSettings”
Can you please suggest me how to set custom fonts?
Thank you!

@BHP_Dev

Let us further investigate this. We’ll notify you in case of any update.

@BHP_Dev

This issue is fixed in API version 23.11.1 (ETA or release is 30.11.2023).

@atir.tahir This issue is resolved by using version 23.11.1.

Thank You
Vaibhav

1 Like

@Vaibhavj22

You are welcome.