Adding a margin of repeated pixels around edges of image
Posted: 2019-03-22T11:46:24-07:00
Hello ImageMagick gurus,
I'm preparing textures for a 3D model and need to add a margin of repeated pixels around the edges. This will prevent odd seams at the edges of my model UV maps, adding a bit of margin there as well.
The image is 4054 pixels wide/high and want to resize to 4096, with the edges filled in with the repeating pixels.
I think I found the key at:
http://www.imagemagick.org/discourse-se ... hp?t=34525
I'm just not quite sure how to apply that to my use case just yet. I'm guessing this would happen with a negative crop to add borders then a variation from the link above?
Thanks for taking a look in advance!
I'm preparing textures for a 3D model and need to add a margin of repeated pixels around the edges. This will prevent odd seams at the edges of my model UV maps, adding a bit of margin there as well.
The image is 4054 pixels wide/high and want to resize to 4096, with the edges filled in with the repeating pixels.
I think I found the key at:
http://www.imagemagick.org/discourse-se ... hp?t=34525
I'm just not quite sure how to apply that to my use case just yet. I'm guessing this would happen with a negative crop to add borders then a variation from the link above?
Thanks for taking a look in advance!