Search found 5 matches

by jedatkinports
2018-11-15T08:38:38-07:00
Forum: Magick.NET
Topic: I can't preview the image after I resize it
Replies: 2
Views: 2473

Re: I can't preview the image after I resize it

I was too fast with this post. I just added the sRGB colorspace and it's working fine.

Code: Select all

image.AddProfile(ColorProfile.SRGB);
by jedatkinports
2018-11-15T08:36:46-07:00
Forum: Magick.NET
Topic: I can't preview the image after I resize it
Replies: 2
Views: 2473

I can't preview the image after I resize it

I tried it with the CLI tool and in C# with Magick.NET. I get the same result. After the resize, I can't preview the image anymore. When I try to open the image for preview I get this message: "Windows Photo Viewer can't open this picture because the file appears to be damaged, corrupted, or too lar...
by jedatkinports
2018-11-15T07:52:41-07:00
Forum: Magick.NET
Topic: Colors are too bright when converting an image from CMYK to sRGB colorspace
Replies: 5
Views: 3511

Re: Colors are too bright when converting an image from CMYK to sRGB colorspace

I have resolved the issue by first converting the image to jpg and do all the processing except resizing. Then I save the file and after that I open it again to resize it. This way it works fine. But if I resize it the same time as I do the rest of the processing the image looks completely different...
by jedatkinports
2018-11-15T07:08:18-07:00
Forum: Magick.NET
Topic: Colors are too bright when converting an image from CMYK to sRGB colorspace
Replies: 5
Views: 3511

Re: Colors are too bright when converting an image from CMYK to sRGB colorspace

I have added another "if statement" which I had in my code. Now there is the complete code. I have added another profile because without it, the new image came out with inverted (negative) colors. I will try it from the command line now and report back. Could you post the command you have used so th...
by jedatkinports
2018-11-15T05:47:09-07:00
Forum: Magick.NET
Topic: Colors are too bright when converting an image from CMYK to sRGB colorspace
Replies: 5
Views: 3511

Colors are too bright when converting an image from CMYK to sRGB colorspace

Here is my code: using (MagickImage image = new MagickImage(sourceImagePath)) { var whiteColor = new MagickColor("#ffffff"); var blackColor = new MagickColor("#000000"); image.BackgroundColor = blackColor; image.ColorAlpha(blackColor); image.Format = MagickFormat.Jpg; image.Quality = 80; image.AddPr...