Search found 22 matches

by lucd
2020-05-14T06:24:33-07:00
Forum: Magick.NET
Topic: covnersion from CMYK to RGB from version 7.14
Replies: 13
Views: 2783

Re: covnersion from CMYK to RGB from version 7.14

Hello, thanks for the notes, i found the missing information there... With the new boolean ColorTransformMode.HighRes, colors are correct The image must be converted from a the cmyk profile, else colors are totally off, as expected image.TransformColorSpace(ColorProfile.USWebCoatedSWOP, ColorProfile...
by lucd
2020-05-13T12:57:41-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

Snibgo , I cannot post the complete code, it is part of a project Still, that was it :) i was reading only the first frame in the collection using MagickReadSettings settings = new MagickReadSettings { FrameIndex = 0, Density = new Density(300, 300, DensityUnit.PixelsPerInch) }; Now i read all the f...
by lucd
2020-05-13T12:33:02-07:00
Forum: Magick.NET
Topic: covnersion from CMYK to RGB from version 7.14
Replies: 13
Views: 2783

Re: covnersion from CMYK to RGB from version 7.14

Previously i could add a profile using "AddProfile"
but this command had gone ??
I can't find release notes
by lucd
2020-05-13T12:29:05-07:00
Forum: Magick.NET
Topic: covnersion from CMYK to RGB from version 7.14
Replies: 13
Views: 2783

Re: covnersion from CMYK to RGB from version 7.14

Unfortunately that doesn't work, the colors are totally off (indeed like if the colorspace was ignored cmyl > rgb classic flashy colors in this case) center are correct colors (originals in photoshop), external converted using image.TransformColorSpace(ColorProfile.SRGB) in v7.14 https://i.ibb.co/nP...
by lucd
2020-05-11T12:20:39-07:00
Forum: Magick.NET
Topic: covnersion from CMYK to RGB from version 7.14
Replies: 13
Views: 2783

Re: covnersion from CMYK to RGB from version 7.14

Well, not sure the code is doing much, as i use exactly the same code / source image, just changing the nuget version causes the issue i'll make a video to show you here is a quick extract of the relevant code, i'll prepare a standalone class to reproduce it // content is a Stream (file read from st...
by lucd
2020-05-10T04:45:16-07:00
Forum: Magick.NET
Topic: covnersion from CMYK to RGB from version 7.14
Replies: 13
Views: 2783

covnersion from CMYK to RGB from version 7.14

Hello, I was still using the version 7.12.0 after upgrading to latest version, the cmyk converted to rgb have their colors off I made tests with the very same code (just upgrading the nuget package) and here are the results with the same image https://i.ibb.co/RTt0k5k/7-12-0.png https://i.ibb.co/jT6...
by lucd
2020-05-10T03:04:18-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

The transparency is coming from a clip path. Here is how to handle that in command line. Sorry, I do not know Magick.Net convert -quiet tif1.tif[0] -alpha transparent -clip -alpha opaque -strip tif1.png Thanks fmw42, gonna try to find the equivalent. what properties on the image should i check to k...
by lucd
2020-05-10T03:03:09-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

That tif file contains two images, with different sizes. Only the second image has an alpha channel. Please show your complete code. Perhaps you are reading both images, and flattening them together. thanks snibgo i use the same code posted above magickImageCollection = new MagickImageCollection(co...
by lucd
2020-05-09T19:03:45-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

Indeed better with a link to the file, sorry

https://www.dropbox.com/s/ph1j8c8lryzj7tl/tif1.tif?dl=0

i did set the format to png 32, solved all problems but this tiff
by lucd
2020-05-09T17:19:36-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

I am left with one problem on a tiff file this tiff has transparency in photoshop, but i can't get the transparency after conversion to png32 i see in debugging that HasAlpha = false in photoshop: https://i.ibb.co/ygskJbd/2020-05-10-02h13-36.png afer conversion https://i.ibb.co/S7Ms54x/tif1-tif-thum...
by lucd
2020-05-09T17:06:53-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

@snibgo i was using image.Format = MagickFormat.Png24; png24 supports the transparency, the code did process thousands of images.. with transparency :) so i guess it depends of the source image as well, go figure here is one png24 in PS .. https://i.ibb.co/sP0PVyv/2020-05-10-01h52-50.png still, i di...
by lucd
2020-05-09T14:34:38-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

Got a solution... but i'd like to understand what's happening ??

the "black" one has total colors = 191
while the ok has thousands of colors

this works.. but why ?

Code: Select all

if (image.TotalColors < 256)
 image.Alpha(AlphaOption.Disassociate);
 
txs
by lucd
2020-05-09T14:19:42-07:00
Forum: Magick.NET
Topic: PSD to png - black background
Replies: 18
Views: 3527

Re: PSD to png - black background

if i remove the alpha channel, the black one goes away,
but i lose the transparency on the standard ok psd

image.Alpha(AlphaOption.Off);

Image