SVG format

Hello
To save as Svg, there’s SvgColorMode.Rgb but no Argb or Transparent? How to enable/disable transparency for Svg?

SvgOptions.VectorRasterizationOptions.BackgroundColor should be set to Transparent?

SvgOptions.Compress is disabled by default? If enabled, it will be Svgz ? What do you recommend?

Generally, saving photos taken by digital cameras as Svg is possible or recommended?
Thanks.

Hi, @australian.dev.nerds.
According to

Storing a photo as SVG is not good since SVG contains the same photo but inside SVG text syntax blocks. In this case, you get the bigger image size. What do you need to store a photo as SVG for?

1 Like

To save as Svg, there’s SvgColorMode.Rgb but no Argb or Transparent? How to enable/disable transparency for Svg?

SvgOptions.VectorRasterizationOptions.BackgroundColor should be set to Transparent?

SvgOptions.Compress is disabled by default? If enabled, it will be Svgz ?

oops, and all formats have .XmpData while .FileFormats.Svg.SvgImage.XmpData does not exists.
What about adding it, or only have to use at saveOptions level?
Thanks.

@australian.dev.nerds The following code snippet can be used to save an image with transparency as an SVG image:

By setting SvgOptions.Compress to true, GZip compression is enabled, which transforms the resulting SVG into a SVGZ image.

Thank you for bringing up the XmpData issue. We will consider adding XmpData support for the SVG file format.

1 Like

Thank you, any case track number? :slight_smile:

@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-6800

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

Hello, any news on adding XmpData support for the SVG file format? :slight_smile:

@australian.dev.nerds due our free support requests
queue fix planned not earlier than q3.