Rasterize SVG

Hello guys, we are back with another monthly release of Aspose.Imaging Cloud. It has been live now and available for consuming it in your application. In this release, we have introduced support for the SVG image format, improved memory usage, along with many other improvements and bug fixes of the issues reported in previous versions of Aspose.Imaging Cloud. For complete details of new features and enhancement, please check the release notes of this version. This article explains the details on what’s new introduced in this article.

Working with SVG

SVG is a more popular image format is being used because of its advantages over other file formats (like PNG, JPEG and GIF). But even then you came across a number of scenarios where you need to rasterize the SVG images. These SVG snapshots are your fallback images for old browsers, and are often required as thumbnail or preview images, particularly for social media sharing.

We have introduced new APIs for manipulating the SVG image format in the current release. Now you can update the properties of an SVG image or convert it to a common raster image. All we can say is Aspose.Imaging Cloud transforms to a complete imaging solution for developers with the new feature.

Let me show you how easily you can manipulate SVG images in your application. I’m using cURL command for the demonstration. However, Aspose.Imaging Cloud also provides SDKs of all popular programming languages via GitHub and external Package Managers, so you can directly use Aspose.Imaging Cloud for image manipulation in your favorite platform directly, without a minimal learning curve.

Aspose.Imaging Cloud provides the following two API for working with SVG. If you set the format to SVG, API will update the source SVG image properties, otherwise it rasterizes the image as per provided image format.

Here we go. We will follow the stated steps for manipulating SVG image.

Update SVG Properties

  • Get JWT Access Token for authentication
  • Upload SVG source Image to Aspose default storage
  • Update SVG image properties

Rasterize SVG Image

  • Get JWT Access Token for authentication
  • Rasterize SVG image from request body and return raster image as response stream

Other Improvements

Here we go, we will follow these steps:

  • Added SVG native support.
  • Established detailed logging.
  • Improved memory usages in the API.
  • Fixed bug Tiff inverts black and white after saving or transforming.
  • Fixed Jpg to PNG conversion issue.
  • Fixed EMF to SVG conversion issue.
  • Fixed SVG to PNG incorrect conversion.
  • After conversion .emf to .png some characters are not recognized correctly.

We Want to Hear from You

Start a free trial today. All you need is to sign up with cloud dashboard. Once you’ve signed up, you’re ready to try the powerful file processing features offered by aspose.cloud.

Feel free to drop us a comment below or share your thoughts about the new version of Aspose.Imaging Cloud API on our support forum.

Suggested Posts

We highly recommend you to visit the following link to learn about: