Skip to content

Ai to Png background transparency #1728

@paulius-petkus

Description

@paulius-petkus

Magick.NET version

14.0.0

Environment (Operating system, version and so on)

Windows, .Net 6

Description

Library fails to preserve transparent background when saving AI image to PNG. It becomes white.

We try to set background transparent:

image.Settings.BackgroundColor = MagickColors.Transparent;
using var fs = File.Create(Path.Combine(OutDirectory, $"{fileName}.{MagickFormat.ToString().ToLower()}"));
image.Write(fs, MagickFormat);

attaching zipped ai image:

mhf09hehc8_iuj4n2.zip

Steps to Reproduce

Save image as png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions