Copy link to clipboard
Copied
Is there any way in photoshop to automate content-aware fill-in the empty space (caused by canvas resize) of images in batch?
Copy link to clipboard
Copied
I have some ideas, there isn't a default native method that comes to mind as I type.
Have all images had their canvas resized? Or is there a mixture of images?
Was the canvas extended with transparent pixels, or opaque pixels such as white?
Copy link to clipboard
Copied
All images are resized to one size that is 800px*1000px(smart object). When all are resized to this size, some images expose transparent pixels. I want all those transparent pixels to be automatically content aware filled. Is that possible?
Copy link to clipboard
Copied
The reply from @jefbr should get you there, but if you wish to preserve the smart object layer then a slightly different approach may be required.
An action or script could do this.
Copy link to clipboard
Copied
yes there is.
you're done.
Copy link to clipboard
Copied
You might want to add extending the selection by a couple pixels into the image area just so that there is no change of a line forming between the content aware fill area and the original image. Maybe this isn't an issue.
Copy link to clipboard
Copied
Always useful to have a px or two overlap!
Copy link to clipboard
Copied
This is a good idea in the case where you want to preserve the layers or the smart object.
If you flatten, you guarantee that there is no content in the extended zones.
You could also do this
*without selecting the entire canvas, the mask is not actually set and will remain white after expanding. By selecting an area, after extending the canvas, the expanded area will be black.
Copy link to clipboard
Copied
can this be automated via action or script on images that have different sizes of transparent canvas pixels?
Copy link to clipboard
Copied
Yes!
One way is CTRL/CMD click on the layer panel thumbnail to load the transparency as a selection in the action recording.
Copy link to clipboard
Copied
Yes, when you record the steps I described above in an action, you have something the solution*.
*something that I think answers your needs and incorporates the feedback of others.