Photoshop ActionScript for Alpha Channel Automation

Job ID: 39169188

Budget: $250 – $750 AUD

I need 3 action scripts for DTG Printing (Direct To Garment)
The First 2 are for DTG printing and they do custom white base layers, this is important for designs, especially with gradients and fades.
The difference between the 2 is one will also remove all black RGB code 0,0,0
I have also added some scripts I have but they're not giving exact results.
The script i have added gives the correct layer, but it does not have white ink in the dark areas, also it will choke in everything by pixel, i need it choke everything except white.

The next one for DTF does a similar custom base layer, but the big difference is that it will choke the base layer by 1px on everything except for white. Anywhere there is white will not get any choke.

I have added examples of what i want showing before and after and the simmilar action script in this dropbox link.
Please ask me any questions you need.

https://www.dropbox.com/scl/fo/4wwsudtb1oczsyxeu7xgd/AOWt-God-Hjw5mwN8RQ9gUA?rlkey=3uza162o6ypj45r68pq1gk3jj&st=glo2abv7&dl=0
Related categories: Photoshop ActionScript