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?

2
  • Have you discovered any way to do this?
    – calbar
    Commented Apr 7, 2022 at 0:19
  • 1
    @calbar I don't think I got the action lying around anymore to double-check it, but I think I went with my comment on the answer below, an action that contracted the edge and executed the minimum filter 1px at a time.
    – Rhaenys
    Commented Apr 13, 2022 at 12:50

1 Answer 1

2

Select the blank area.

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

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

1
  • 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
    Commented Aug 28, 2017 at 4:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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