I am making a blank paintable map from a game's map that it uses to make the provinces in-game. I want to know how to make the border between all the different colours instead of individually selecting them and making a border.
Can you post an example of your map, if it is big, part of it will do. How it is made will influence the method.
For example this is using a Gimp plugin g'mic
http://www.gmic.eu It will add borders (in black) between colours. Which might be sufficient. But any existing outlines will be reinforced, which might not be so good.
screenshot gimp and gmic:
https://i.imgur.com/dPJGrgH.jpg
(04-22-2018, 04:51 PM)rich2005 Wrote: [ -> ]Can you post an example of your map, if it is big, part of it will do. How it is made will influence the method.
For example this is using a Gimp plugin g'mic http://www.gmic.eu It will add borders (in black) between colours. Which might be sufficient. But any existing outlines will be reinforced, which might not be so good.
screenshot gimp and gmic: https://i.imgur.com/dPJGrgH.jpg
https://xylozi.files.wordpress.com/2014/09/tut_1.png not actually mine but the map is like that pretty much
I can see why you might not want to treat each area individually. Do you need the sea? Assuming not.
(edit: I hope the images you are working on are larger than the size the example seems to be.)
One way is using colour selections and selection-to-path
01. Reduce the number of colours. Several ways but I favour changing the image mode to indexed
Image -> Mode -> Indexed
screenshot:
https://i.imgur.com/6tzQsFM.jpg
02. I put the colormap map up for reference in the screenshot, but colour select each required colour (maybe sea is not required) and for each selection make a path.
Select -> To Path Good idea to keep the path visibility on for each path to see progress.
screenshot:
https://i.imgur.com/dEng69N.jpg
03. Now convert back to RGB
Image -> Mode -> RGB (and a good time to save your image as a Gimp .xcf file with those paths). You can keep the separate paths or combine into one - right click, merge visible paths.
screenshot:
https://i.imgur.com/1pjD8DB.jpg
04. Make a new layer for a border overlay. Stroke the path(s)
Edit -> Stroke Path
screenshot:
https://i.imgur.com/cbco6RX.jpg
05: Now Import the original back in
Open as Layers and put under the border overlay.
screenshot: