Skip to main content
Known Participant
December 29, 2023
Question

Batch process generative fill to replace blotches

  • December 29, 2023
  • 2 replies
  • 2394 views

Hello all.

 

If I use the lasso tool in PS or LR desktop and use the AI generate tool I can successfully remove dust, scratches and in this case some believed faulty pixels.

 

Is it possible to batch process this across many images?

Spots always in the same place

 

 

 

This topic has been closed for replies.

2 replies

c.pfaffenbichler
Community Expert
Community Expert
December 30, 2023

Have you figured out how to perform the creation of the Selections in the individual images in the Batch yet? 

Options would include using Quick Mask, loadin gthe Selection from a separate image, …

 

And please consider that Generative Fill only creates content of up to 1024px x 1024px (so far) – so if the bounds of your Selections exceed that the content will be upsampled. 

Known Participant
December 30, 2023

Hi.

I'm trying to remove some faulty sensor pixels, so the CA fill is in the order of perhaps 16 pixels down to perhaps 4 pixels.

 

I've managed to create a lasso selection across a number of images. 

Turning lens corrections off for this step looks to be helpful.

I had (incorrectly) assumed the text box for the content aware full would need completing for each image and hadn't considered leaving it blank would be just fine.

The dust and scratch tool isn't sufficiently getting rid of these pixels but that fill does.

 

I haven't looked at loading the selection from a separate image. Is this different to applying the selection to image 1, and then synchronising other images to it?

Very many thanks for your input. 

c.pfaffenbichler
Community Expert
Community Expert
December 31, 2023

Are you working on the images in Lightroom (or Camera Raw) or in Photoshop itself? 

Stephen Marsh
Community Expert
Community Expert
December 29, 2023

Sure, just record an action for the selection and generative fill with an empty prompt. Then use Automate > Batch to apply to multiple files.

Known Participant
December 30, 2023

Thanks Stephen I shall give that a try.

Before I do, will an empty prompt do the same as a prompt of, say, replace with background?

Perhaps I don't ever need to fill the prompt in.

Most appreciated 

Stephen Marsh
Community Expert
Community Expert
December 30, 2023

An empty prompt is similar to content aware fill, but much better in results from my experience, but test both for yourself as this is very much dependent on image content.