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.

Hi @evgen.efimov
Thank you for looking into this issue and for sharing your test results.
Yes, we would like to further improve the output image quality. We’ve already explored all available image conversion-related options for the SVG to JPG conversion process, but have not been able to achieve the desired clarity.
Could you please advise on any specific settings, configurations, or approaches that could help enhance the image quality further during conversion?
Looking forward to your guidance.

Thank You!
Vaibhav Jadhav

Hello @Vaibhavj22 ,

Unfortunately, at the moment, there are no other public methods available in GroupDocs.Conversion for Java that would allow you to improve the quality of the output document.
Specifically, the methods that are supposed to control image quality — setHorizontalResolution() and setVerticalResolution() — are currently not working as expected.
We are actively working to resolve this issue and will notify you as soon as we have any updates.

As a temporary workaround, we recommend adjusting the viewBox in your SVG file (for example: viewBox="100 100 300 300") to focus on the specific area of the text or content you wish to capture.
This should result in higher output quality after conversion — if such an approach is acceptable for your use case.