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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnIO.SaveToFilePSD automatically sets Clipping Masks of all layers

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sybren Posted - May 17 2025 : 14:14:48
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

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 18 2025 : 16:08:43
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
Sybren Posted - May 18 2025 : 02:49:41
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
xequte Posted - May 17 2025 : 16:05:43
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