Issue with SVG to Image Conversion

Hello, We are facing an issue with some SVG to JPG conversions for any SVG file. (facing the same issue for SVG to other types of image conversion), Conversion gets successful but converted files are problematic(copyright marks appearing in the converted JPG files at the top-left corner of the image),
please let us know any configuration required for it.

We have tried it Group-docs. Conversion version JAVA 23.11.1 and latest version 24.4. with the following conversion options

ImageConvertOptions convertOptions= new ImageConvertOptions();
convertOptions.setFormat(ImageFileType.Jpg);
convertOptions.setWidth(width);
convertOptions.setHeight(height);
convertOptions.setPagesCount(1);
convertOptions.setPageNumber(i);

Thanks.

Hi @Vaibhavj22 do you use the license?

Yes. we have a license.

@Vaibhavj22 can you please upload here a sample project?

Hi @vsevolod.orefin
It is not possible to upload the entire project here. I will share the conversion code with you. please suggest if there is any configuration required.
the issue is Conversion is successful but converted files are appearing with copyright marks.

please check the SVG to JPG conversion code below.

Blockquote

//Java code
//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);
if(width > 0 && height > 0) {
options.setWidth(width);
options.setHeight(height);
}
//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))) {
converter.convert(getPageStream, options);
} catch (IOException e) {
System.out.println(e.getMessage());
}

Blockquote

@Vaibhavj22 I can not see the license setup in this code sample.

Hi @vsevolod.orefin, please check the below-shared license setup.

Summary

@EventListener
public void onApplicationEvent(ContextRefreshedEvent event) {
try {
log.info(“GroupDocs License”);
License license = new License();
File file = new File(getClass().getClassLoader().getResource(getMyProperties().getGroupdocConversionLic()).getFile());
license.setLicense(file.getAbsolutePath());
log.info("GroupDocs License Applied from Path : " + file.getAbsolutePath());
} catch (Exception exp) {
log.error("Failed to apply GroupDocs License : ", exp);
}
}

Our license setup code is in a different class and is loaded while the application starts.
Thanks.

Thanks @Vaibhavj22
I will update you after investigation of the issue.