SVG to JPG image conversion issue in Java

Hi @atir.tahir
We’ve implemented SVG to JPG image conversion using the latest version of GroupDocs (v25.3). However, the output images appear blurry, and the fonts do not seem to render correctly during the conversion process.

Could you please advise if there are any updates or configurations needed on our end to resolve this issue?

Thanks
Vaibhav

Hello @Vaibhavj22 ,

Thank you for contacting us.
Could you please provide more details regarding your use case?
It would be very helpful if you could share a code sample you’re using to convert SVG to JPG, as well as the SVG file you are trying to convert.
Also, please clarify which environment the conversion is being performed in — Linux or Windows.
We’ll be waiting for your clarification so we can assist you as quickly as possible.

Hi @evgen.efimov
I’ve shared our sample conversion code along with the SVG file below for your review.
We are using a Windows environment for this setup.

We tried to convert the provided SVG to JPG using the 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());
}

You can access the shared folder and find the file using the following link:
Shared Folder – Google Drive

Please let us know if you need anything else. We look forward to your feedback.

Thank You!
Vaibhav

@Vaibhavj22 ,

Thank you for the information you provided.
We tested the file you shared using the latest version of GroupDocs.Conversion for Java 25.5.1 and received an acceptable result - Screenshot_1.png (133.6 KB).
There is a slight loss in quality, but we did not observe any noticeable text blurriness or significant font differences.

If you’re seeing a similar result on your side — would you like to further improve the output quality?
Please clarify so we can move forward accordingly.