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

Free Support Forum - aspose.com

How to Create an Image File (base64 Format) from SVG Content?

We have purchased aspose.slides and creating ppt slides with image. Here we are creating an image from svg content using svg image and adding it to ppt. Now we want to create an image file / base 64 format from svg content. Is that achievable using aspose.slides or do we need to purchase aspose.svg? Please confirm us asap.
sample code :

ISvgImage svg = new SvgImage(SvgContent);
var emfImage = pres.Images.AddImage(svg);

Thank you for posting your question.

I’m not sure I understood the problem you described. Could you please describe it in more detail?

i want to convert svg to an image file either in jpg or png format. is that possible using aspose.slides ?

If you don’t want to use Aspose.Imaging, you can try using the following workaround with Aspose.Slides:

Bitmap shapeThumbnail = shape.GetThumbnail();
shapeThumbnail.Save("image.png", ImageFormat.Png);
shapeThumbnail.Save("image.jpg", ImageFormat.Jpeg);

where the shape variable is a PictureFrame object containing an SVG image.

Documents: Create Shape Thumbnails