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

Free Support Forum - groupdocs.com

SVG to Image Conversion Issue

Hello, We are facing an issue with some SVG to JPG Conversion for the attached SVG, Conversion gets successful but converted files looks like texts are gets errased, please check those files here – (https://drive.google.com/drive/folders/192qObaYjyA06mgnYJ_YGEIF8h23Xk6EI?usp=sharing)
We have tried it with groupDcos.Conversion latest version JAVA , please let us know any configuration required for it

Thanks.

1 Like

@Swapnil_Walke

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());
}

We successfully reproduced this issue our end. Therefore, it’s been logged in our internal issue tracking system with ID CONVERSIONJAVA-1597. You’ll be notified in case of any update.

Hi
Is there any update on this issue ?

@Swapnil_Walke

This issue is still under investigation. We’ll update you in case of any progress.

Is there any update on this issue ?

@Swapnil_Walke

This issue is still under investigation.