Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
linking a image with its mask
#6
I agree with Ofnuts, it is all a bit weird and along the lines of the commercial PS clipping path makers but for Gimp Wink  These are your clips. What you have to what you require.

   

I am no code writer, especially script-fu which to me is a clear as Sanskrit. Thus as a user step-by-step

"manually" using some existing scripts

1. Why the different size layers ? Ofnuts has a good python plugin for layer > image size but sticking with a script-fu sg-scale-to-selection.scm to correct that
2. Duplicate base layers and apply the mask to the visible layer using sg-copy-mask-to-layers.scm
3. Apply the layer mask to one of the layers with the script sg-apply-layer-mask-all-layers.scm

Obviously there is some user intervention between these steps, deleting layers, selecting layers. How to batch that I do not know. The scripts attached, zipped. Unzip and put in your scripts folder. Maybe you can use bits of the code to re-draft your batch procedure.

I can just get that into 1 minute for imgur:  https://i.imgur.com/ghBxhvm.mp4

best of luck.


Attached Files
.zip   3-mask-scripts.zip (Size: 2.95 KB / Downloads: 117)
Reply


Messages In This Thread
linking a image with its mask - by reena - 05-26-2022, 10:34 AM
RE: linking a image with its mask - by rich2005 - 05-26-2022, 11:37 AM
RE: linking a image with its mask - by Ofnuts - 05-26-2022, 10:16 PM
RE: linking a image with its mask - by reena - 05-27-2022, 07:52 AM
RE: linking a image with its mask - by Ofnuts - 05-27-2022, 01:55 PM
RE: linking a image with its mask - by rich2005 - 05-27-2022, 03:48 PM
RE: linking a image with its mask - by reena - 05-31-2022, 08:21 AM
RE: linking a image with its mask - by tmanni - 05-27-2022, 10:20 PM
RE: linking a image with its mask - by rich2005 - 05-31-2022, 11:16 AM
RE: linking a image with its mask - by reena - 06-01-2022, 11:02 AM
RE: linking a image with its mask - by reena - 06-02-2022, 02:25 PM
RE: linking a image with its mask - by rich2005 - 06-02-2022, 03:22 PM
RE: linking a image with its mask - by reena - 06-03-2022, 05:05 AM

Forum Jump: