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
 Getting Error: Embedded ICC Profile cannot be used
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yogiyang

India
537 Posts

Posted - Jul 01 2019 :  03:50:16  Show Profile  Reply
Hello,

I am trying to save to PSD file format from IE.

For this I am using following code:

IEGlobalSettings.EnableCMS := True;
IEGlobalSettings.UseCMYKProfile := True;

ieViewMain.IEBitmap.PixelFormat := ieCMYK;
ieViewMain.IO.Params.BitsPerSample := 32;
ieViewMain.IO.Params.SamplesPerPixel := 4;
ieViewMain.IO.SaveToFilePSD(SaveDialogPSD.FileName);


But the resulting file when opened in Photoshop gives following error:
 
The embedded ICC profile cannot be used because the ICC profile is invalid


How to solve this problem?

TIA


Yogi Yang

xequte

4712 Posts

Posted - Jul 01 2019 :  17:28:41  Show Profile  Reply
Hi Yogi

Does the image have a valid InputICCProfile?

https://www.imageen.com/help/ImageEn/TIOParams.InputICCProfile.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
537 Posts

Posted - Jul 02 2019 :  00:33:23  Show Profile  Reply
Hello,

I think it has an input profile because we are loading a PSD file (which is 24bit that is in RGB mode in Photoshop terminology) and allowing a user to make modifications and then saving the same PSD file in CMKY format.

TIA


Yogi Yang
Go to Top of Page

xequte

4712 Posts

Posted - Jul 02 2019 :  18:19:38  Show Profile  Reply
Please forward the PSD file.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
537 Posts

Posted - Jul 03 2019 :  08:28:41  Show Profile  Reply
Hello,

Please download the original PSD file.
https://mega.nz/#!6gwl1CbR!w2qpdYSSVz00g1ecymV4bKNHq4FveI7Qyoamh_e79ts

TIA


Yogi Yang
Go to Top of Page

xequte

4712 Posts

Posted - Jul 03 2019 :  18:57:38  Show Profile  Reply
Hi Yogi

I tested as follows with a blank project and did not get an error:

  ImageEnView1.IO.Params.PSD_LoadLayers := True;
  ImageEnView1.IO.LoadFromFile( 'D:\0101.PSD');

  IEGlobalSettings.EnableCMS := True;
  IEGlobalSettings.UseCMYKProfile := True;

  ImageEnView1.IEBitmap.PixelFormat := ieCMYK;
  ImageEnView1.IO.Params.BitsPerSample := 32;
  ImageEnView1.IO.Params.SamplesPerPixel := 4;
  ImageEnView1.IO.SaveToFilePSD( 'D:\0101_CMYK2.PSD' );


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
537 Posts

Posted - Jul 04 2019 :  00:29:12  Show Profile  Reply
Hello Nigel,

Did you open the file in Photoshop?

It is Photoshop that is giving error not ImageEn.

TIA


Yogi Yang
Go to Top of Page

xequte

4712 Posts

Posted - Jul 04 2019 :  23:52:08  Show Profile  Reply
Hi Yogi

I have Fireworks rather than Photoshop, but it generally performs the same (with errors I have seen in the past).

Does the code above in a blank project still give you an error in Photoshop?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: