Rasterize SVG

Hello guys, we are back with another monthly release of Aspose.Imaging Cloud, 19.9. It has been live now and available for consuming it in your application. In this release, we have introduced support of 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. Read on to see what’s new.

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 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.Imaing 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 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 image as per provided image format.

GET ​/imaging​/{name}​/svg - Update parameters of the existing SVG image.

POST ​/imaging​/svg - Update parameters of SVG image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.

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 AI 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 the aspose.cloud. 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 Post

Convert Image to Grayscale