Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Action that remove background and image batch process

Explorer ,
Jun 29, 2017 Jun 29, 2017

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

IMG_7676.jpgIMG_7749.jpgIMG_7840.jpg

FINAL RESULT that I want

final.jpg

TOPICS
Actions and scripting
22.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 30, 2017 Jun 30, 2017

On CC 2017 this provides halfway decent results for the test files (utilising the four-corner-Magic-Wand-Selection as proposed by JJMack):

Screen Shot 2017-06-30 at 15.36.03.png

// 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

...
Translate
Adobe
Community Expert ,
Mar 24, 2018 Mar 24, 2018

Hi ,

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].

---------------------------------------------------------------------------------------------

bluecd  schrieb

… PS. Maybe a

code

option in forum could be added for script block?

see here: Re: How do you properly post script in these forums?!?

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 24, 2018 Mar 24, 2018

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2018 Mar 24, 2018
LATEST

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.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines