Have you been wondering how to widen the wireframe programmatically, There are some situations that you have to expose all the wireframes from your 3D model. After exporting the UV wireframe, It feels like the wireframe is too thin and cannot be seen by the naked eye, You need to zoom in to make it clear, or use a photo editor to make it wider putting outlines there. Sadly this workflow is too slow.
So, I came up with new idea. What if python can help us. Pillow module would be very useful for this simple task.
from PIL import Image,ImageFilter ## You need to download this module online.
from PIL import ImageEnhance
def bold_wireframe(wireframe_path): ## Read from Image module
wireframe = Image.open(wireframe_path) ## Read .png file
width, height = wireframe.size
wireframe = wireframe.filter(ImageFilter.SMOOTH)
wireframe = wireframe.filter(ImageFilter.SMOOTH_MORE)
enhancer = ImageEnhance.Brightness(wireframe)
wireframe = enhancer.enhance(3000)
pos_x = 0
pos_y = 0
## Widthen Lines
bg = Image.new(size = (width,height), mode = "RGBA") ## Store to New Image
offset = 4
bg.paste(wireframe,(pos_x+offset,pos_y),wireframe)
bg.paste(wireframe,(pos_x-offset,pos_y),wireframe)
bg.paste(wireframe,(pos_x,pos_y+offset),wireframe)
bg.paste(wireframe,(pos_x,pos_y-offset),wireframe)
bg.paste(wireframe,(pos_x,pos_y),wireframe)
enhancer = ImageEnhance.Brightness(bg)
bg = enhancer.enhance(3000)
bg.save(wireframe_path)
bold_wireframe("Your images path goes here")
Simple widen operation, notice the right hand side is wider then the left one.
The idea is just to do some small offset and merge them back to one image, Since the .png format contains alpha chanel. You can also change the code above and port it direclty to the next image operation. Hope this would be useful to you.