Skip to main content
Retour aux guides

Generate DK2 UI icons from images

knoedelsalatknoedelsalat
Feb 22, 2025 @ 6:55am80843
Modding or ConfigurationWeaponsWorkshopEnglish
Examples

Example icon of a G36KA4, larger side 400 px, default settings, no retouching.
Original image by Ominae[www.imfdb.org], source: IMFDB[www.imfdb.org]


XD-D Elite Tactical OSP, larger side 220 px, RMBG INSPYRENET, no retouching.
Original image by The Armory Life[www.thearmorylife.com]


Kimber Ultra Carry II, larger side 170 px, default settings, no retouching.
Original image by Bass Pro Shops[www.basspro.com]

More tests and examples in the DK2 Steam Workshop discussions board
Overview
Load up a source image, enter the desired longer side of the icon to be generated (in pixels), and render the icon.

The workflow will automatically remove the background from the image, crop and resize it, and create an icon in the DK2 color scheme.

After reviewing and tweaking the result, the workflow can save a batch of images to your ComfyUI output folder, currently those are:

Filename
Notes
prefix_00-source.png
the source image as reference
prefix_01-body.png
the dark brown background
prefix_02-lineart.png
the fine line art inside of the icon
prefix_03-outline.png
the thick outline around the icon
prefix_04-icon.png
all layers combined into one image

All images will be properly alpha-masked and resized, and can be opened as layers in GIMP or Photoshop for manual fine-tuning.

Check the example output folder in the GitHub repo[github.com] to see what these layers will look like.
Screenshot
ComfyUI with the workflow open. The colorful noodles should make you feel right at home.

Download
Workflow files and detailed instructions on how to use are over on GitHub:

https://github.com/knoedelsalat/image-to-dk2-ui-icon

If you have questions or comments, drop me a line!

All the best and happy modding :)