Copy link to clipboard
Copied
Hi, I have a bunch of images just like attached below in terms of size and feel, I just want to make an action to remove background size and gradients effects are same just like examples I have attached here, so there are any possibilities to make such kind of action to auto remove all background?
Thanks in advance
FINAL RESULT that I want
On CC 2017 this provides halfway decent results for the test files (utilising the four-corner-Magic-Wand-Selection as proposed by JJMack):
...
// 2017, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
myDocument.selection.deselect();
// magic wand selection;
magicWandTool (10,10);
magicWandTool (myDocument.width-10,10);
magicWandTool (myDocument.width-10
Copy link to clipboard
Copied
Hi bluecd,
hijacking an old (and answered) thread is not a good idea. It is better to start a new thread (and perhaps link to this old one).
The code you've posted looks like code from the (in this case wrong) VB Log file. There should be normally two Log files on your desktop - a VB Log file and a JS Log file. Please take the right one for questions in [JS].
---------------------------------------------------------------------------------------------
option in forum could be added for script block?
bluecd schrieb
… PS. Maybe a
code
see here: Re: How do you properly post script in these forums?!?
Regards
Copy link to clipboard
Copied
Re 1
Disagree. I am not HIJACKING whatsoever but mention an existing thread for better undersyanding of a problem, for programmer's sake!
Re 2: OK, havent noticed that option.
3. What script listener should I use then?
Copy link to clipboard
Copied
bluecd schrieb
3. What script listener should I use then?
The same.
But the other LOG FILE on your desktop --> ScriptingListenerJS.log (and not ScriptingListenerVB.log)
(Note: I leave this old thread now.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now