0

I'm working on a couple of maps for a 3D mesh. I need to expand the edges of an image in a way the image data itself is replicated as well.

Example:

Expanded map edges example

(Image courtesy of this post)

I had some success using the Content-Aware Fill, but it's not perfect because it's way too smart. The edge pixels aren't replicated, they're sort of smoothly blended together and end looking lighter than the edge. They need to be of the same color of the edge.

Content-Aware step 2

How can I achieve a closer result to the top image in Photoshop?

1

Select the blank area.

Menu>>select>>modify>>expand: 1 pixel (or two).

Menu>>filter>>other>>minimum: play with the values.

  • Thanks for the answer. Unfortunately this filter produces very strange results when using high radius values, and the extended edges don't match the image edges. However, you gave me an idea that might work well: Automate the act of selecting the negative space, expanding 1px, using Minimum with 1px radius. Repeat this a couple of times and and accurate edge is created. – Rhaenys Aug 28 '17 at 4:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.