Fixed SVG to Image Transparency

T
Tomas
ConvertAPI

Transparent areas of an SVG are preserved again when the image is rasterized. The background color is now applied before the vector is drawn rather than after, which is what had been filling transparent regions in the output.

Fixes

  • SVG to PNG - transparent regions stay transparent instead of being filled in.
  • SVG to WEBP and other formats with an alpha channel - transparency is preserved the same way.
  • SVG to JPG - JPG has no alpha channel, so transparent regions are flattened onto a white background instead of a black one.

Try it out