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
 ImageEnIO.SaveToFilePSD automatically sets Clipping Masks of all layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sybren

34 Posts

Posted - May 17 2025 :  14:14:48  Show Profile  Reply
Nigel, members,

Since my last update (11 to 13.6 and 14) all my saved files as multi-layered .PSD files appear to be having a Clipping Mask. I noticed this by saving as .PSD and then opening that file in CS5 and CS6. Even the background layer has this Clipping Mask, which can only be released by swapping with any other layer of the .PSD file. The layers typically contain images with different size and position as the background layer, and have transparent areas.

It was never saved with Clipping Masks in my version 11. Perhaps I missed update notes, and digging in this Forum didn't help me either find the reason, or better, the solution to avoid Clipping Masks of all layers in .PSD files using .SaveToFilePSD.

I would appreciate if anyone can explain how to avoid Clipping Masks when saving as layered .PSD files.

Thanks,
Sybren

xequte

39019 Posts

Posted - May 17 2025 :  16:05:43  Show Profile  Reply
Hi Sybren

Do you have layer cropping enabled?

http://www.imageen.com/help/TIELayer.Cropped.html
http://www.imageen.com/help/TImageEnView.LayersCropped.html

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

Sybren

34 Posts

Posted - May 18 2025 :  02:49:41  Show Profile  Reply
Thanks Nigel, that was my missing insight.

I added one line of code, enabling cropping for all layers:
for var i := 0 to ImageEnView1.LayersCount - 1 do ImageEnView1.Layers[ i ].Cropped := true;

Perhaps a suggestion, without thinking of the consequences, should layer cropping not be enabled by default?
Apparently it's set to false by default, leading to this situation.

Thanks again for your quick response,

Sybren
Go to Top of Page

xequte

39019 Posts

Posted - May 18 2025 :  16:08:43  Show Profile  Reply
Hi Sybren

Thanks for confirming.

It is not the default option because sometimes users have no background image (layers only), so by default, they would see no content.

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