ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [ask] Difference CMYK colour from input and output
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

agus pranoto

Indonesia
6 Posts

Posted - Aug 25 2016 :  21:16:33  Show Profile  Reply
hi
i have try "Burn Copyright" aplication on demo page http://www.imageen.com/demos/index.html

i have an image with cmyk format for pure yellow=> C=0, M=0, Y=100, K=0
after open on tha demo aplication and saved than open result image
it's change diference CMYK output C=5, M=2, Y=95, K=0
why it's happen?






xequte

38616 Posts

Posted - Aug 26 2016 :  01:26:13  Show Profile  Reply
Hi

What format are you saving the image to? (i.e. is it a lossy format like JPEG). Can you attach a before and after image.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

agus pranoto

Indonesia
6 Posts

Posted - Aug 26 2016 :  04:33:10  Show Profile  Reply
I use JPEG Format, Quality 100%

Original file


Result File


Go to Top of Page

xequte

38616 Posts

Posted - Aug 29 2016 :  01:27:58  Show Profile  Reply
Hi

What version of ImageEn are you using?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

agus pranoto

Indonesia
6 Posts

Posted - Aug 30 2016 :  02:22:33  Show Profile  Reply
actualy i'm software developer too.
early i want to use imageen to use in my project, but after my experiment and see what happen on that result that's way i'm asking to this forum.
i'm using delphi 7
here code how i saving the file

ImageEnView2.IO.Params.JPEG_ColorSpace:=ioJPEG_CMYK;
ImageEnView2.IO.Params.SetDefaultParams;
ImageEnView2.IO.SaveToFile(ExecuteSaveDialog('', '', false, 1, ''));

i'm using imageen version 5.2.0
Go to Top of Page

xequte

38616 Posts

Posted - Aug 31 2016 :  00:13:33  Show Profile  Reply
Thanks, I can reproduce the issue and will investigate.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

agus pranoto

Indonesia
6 Posts

Posted - Aug 31 2016 :  20:59:11  Show Profile  Reply
hi nigel
i try every demo ( compiled program ) on this site than Contain saved function have the same result and the same problem
have diffrent color composition between input and output altough saved in difference format
Go to Top of Page

xequte

38616 Posts

Posted - Sep 07 2016 :  17:02:46  Show Profile  Reply
We have completed our investigation:

This jpeg contains an embedded ICC profile. ImageEn can use the embedded ICC profile to convert from CMYK to RGB (sRGB), but this is not enabled by default. So the right way to load this image is:

IEGlobalSettings().EnableCMS := true;
ImageEnView.IO.LoadFromFile('201682641431_DIJUAL 100X100.jpg');

However using the embedded profile you will not have a pure yellow, but 255,241,0. This is normal, because it is using the ICC color profile (there isn't a direct relation from CMYK to RGB values).


When a jpeg doesn't contain an ICC profile then ImageEn uses a default profile to convert from CMYK to RGB. THIS IS THE DEFAULT BEHAVIOR, even when the jpeg contains its own profile. Using the ImageEn profile you will have 255,236,0 for the yellow.

IEGlobalSettings().UseCMYKProfile := true; // <- this is already the default!
ImageEnView.IO.LoadFromFile('201682641431_DIJUAL 100X100.jpg');


To have pure yellow you have to disable CMS (already the default) and ImageEn ICC profile (not the default):

IEGlobalSettings().UseCMYKProfile := false;
ImageEnView.IO.LoadFromFile('201682641431_DIJUAL 100X100.jpg');

In this case you will have 255,255,0 for the yellow.

This method can produce wrong (unrealistic) colors on photographic images.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

agus pranoto

Indonesia
6 Posts

Posted - Sep 21 2016 :  22:03:55  Show Profile  Reply
from your last posted, i understand what your explanation.

i'm using corel to created my file
i think corel is using color profile



corel is using CMYK colour profile U.S Web Coted(SWOP) v2

this is icc profile that corel used

attach/agus pranoto/201692122134_USWebCoatedSWOP.zip
376.73 KB

how i implement into my project by using external icc profile.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: