

In this case, it's probably not needed, but you could be dealing with images which actually had some texture worth preserving in the border. But I'll try to show how you could automatize using Content-Aware Fill to expand a border around an image. You already have a good answer from which shows what is probably the sane thing to do. This does assume all the cards have relatively the same 20px border - or if they don't - a slight 1-2px edge around the inner artwork, where the yellow may not exactly match, isn't really a problem. There's no "magic wand" here, nothing which requires a "user click".

Image > Canvas Size - enter values and hit OK.Edit > Fill - Background Color, normal, 100%.20px (or whatever you feel is correct), and tick Apply effect at canvas bounds.Set the background color to the yellow.(There are options to change this as shown in the animation above.)īased on comments regarding some slight variations in the existing yellow border, I would. So it's using the white content to fill the area, well, white.Īssuming it's a 1 layer, flat, no transparency, "Background layer" imageįor a "flat" image, whatever color the background color is set to will be the color of the additional canvas area when you increase the canvas size by default. It's not working as you are expecting because the "content" you have selected, based on the steps described, is white. I don't know why you are using "content aware". I would appreciate any advice on how to automate this action. I think the reason is that the "custom" selected sampling area can't be applied in a batch process. The problem is, that the last step fails within batch processing multiple similar images.

As sampling area I chose "custom" and selected the yellow border using the sampling brush tool. This step is performed to ensure best results, as the yellow colour of the thin border around the images is not completely homogenous and the yellow tone also varies slightly between images.

