Resolution Unit

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Resolution Unit

Post by snibgo »

That is a bad file, because it is encoded as sRGB but contains a CMYK profile.

I suppose you have assigned a CMYK profile. Instead, you should first assign an sRGB profile, then convert to a CMYK profile.
snibgo's IM pages: im.snibgo.com
angi_sfj
Posts: 15
Joined: 2019-04-18T03:08:17-07:00
Authentication code: 1152

Re: Resolution Unit

Post by angi_sfj »

well, my first code was:

Code: Select all

                //image.AddProfile(ColorProfile.SRGB);
                image.AddProfile(ColorProfile.USWebCoatedSWOP);
with first row uncommented.
now i retry, maybe there was something else wrong.
or maybe the conversion has to be done in another way??
angi_sfj
Posts: 15
Joined: 2019-04-18T03:08:17-07:00
Authentication code: 1152

Re: Resolution Unit

Post by angi_sfj »

ok now it works.
thankyou all
Post Reply