Skip to main content
Known Participant
November 6, 2023
Answered

Square images and content aware fill action

  • November 6, 2023
  • 1 reply
  • 2187 views

I want to downsize all my vertical images which are way bigger than the size I want(1000px by 1000px).

How I can create actions which automate this process to bulk square all these images, content aware fill the right/left bars that creates when images squared.

 

Please suggest actions that retains maximum quality and colors do not get changed.

This topic has been closed for replies.
Correct answer Stephen Marsh

Here is another version which creates much better results, using Generative Fill from Photoshop 2024 (not compatible with earlier versions):

 

https://www.dropbox.com/scl/fi/4xmymx4yjgugo0785zqhh/Resize-to-Square-with-Generative-FIll-Ps-2024.atn?rlkey=62rwsqz9omh0rtggq9lxvuonn&dl=0

 

1 reply

Stephen Marsh
Community Expert
Community Expert
November 6, 2023

One way is similar to the following:

 

 

You can download the action here, which presumes a flattened Background:

 

https://www.dropbox.com/scl/fi/wl6dilvmfq6bqks8as2be/Resize-to-Square-with-Content-Aware-FIll.atn?rlkey=j1jjtrf6xcchwsdmah4vfg1aa&dl=0

 

You may wish to add a flatten step at the end.

 

raeenAuthor
Known Participant
November 7, 2023

When I run your action first time, it promted me twice to contunue but on the 2nd time it just did what I wanted. Thank you so much for the kind help

raeenAuthor
Known Participant
November 7, 2023

Have you posted in the wrong topic?

 

You have another topic about removing borders/frames.

 

This is the first time that you have indicated that these images may have a border/frame in this topic. The expectation was that the image would have no frames or borders as the starting point.

 

You have not provided a 1000px sample.

 

You have not provided a sample with the black borders.

 

It is very hard to help you when you are not providing good information.


Here is complete process—

  1. Check whether there is frame/border in the image or not, if yes remove it.
  2. After removing the frame, all images are tall that needs to be squared. Here centring subject with equal space right and left along with margin top and bottom of the subject. This way all images will be consistent.
  3. Last step is to make background black and white to increase attention on the subject.

 

I asked in steps because it is long process difficult to achieve in one step/action. Hope you don't mind. Thank you for all the replies