Ai to Png background transparency #1729
Unanswered
paulius-petkus
asked this question in
Help
Replies: 2 comments
-
This is happening due to a limitation of Ghostscript library. They don't support CMYKA and we will read the file as CMYK. You can work around this by reading the image in the var settings = new MagickReadSettings
{
ColorSpace = ColorSpace.sRGB,
};
using var image = new MagickImage("mhf09hehc8_iuj4n2.ai", settings);
image.Write("mhf09hehc8_iuj4n2.png"); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much. I have just tested - works fine.
…On Thu, Oct 3, 2024 at 11:40 PM Dirk Lemstra ***@***.***> wrote:
This is happening due to a limitation of Ghostscript library. They don't
support CMYKA and we will read the file as CMYK. You can work around this
by reading the image in the sRGB colorspace:
var settings = new MagickReadSettings{
ColorSpace = ColorSpace.sRGB,};
using var image = new MagickImage("mhf09hehc8_iuj4n2.ai", settings);
image.Write("mhf09hehc8_iuj4n2.png");
—
Reply to this email directly, view it on GitHub
<#1728 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGWROFZ7QJB3K5W5CBLNTFLZZWTTJAVCNFSM6AAAAABPJJVRM2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGI4TENRUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
attaching zipped ai image:
mhf09hehc8_iuj4n2.zip
Steps to Reproduce
Save image as png.
Beta Was this translation helpful? Give feedback.
All reactions