Home
DMC Image Converter
Latest Release
About
DMC Image Converter is a tool used to create cross stitch patterns from images.
Current Features
- Load an image and have it converted into a pattern for cross stitching with DMC floss.
- Automatic selection of best DMC threads to use, as well as user specified.
- Resize a loaded image to a set width.
- Display grid showing DMC values, representing the converted pixels of the loaded image.
- Grid Marking to track your stitching progress.
- Select between different colour matching algorithms. Each gives a slightly different result. With the closeest current algorithm being CIE2000. Although the closest mathematically, you may want to play around with what the other versions produce.
- Dithering (reduces colour banding caused by a reduced colour palette)
- Basic PDF export (still in development)
- Save and load a conversion, along with marked stitches.
Currently Working On
- Auto Save
- Load/save feature. Allowing the user to make a conversion, save it, and then re-load it the next time the launch the program. Without having to convert it again.
- Ability to draw your own pattern, or edit a conversion, using any DMC colour the user wants to (paint).
- Figuring out the best way to save the conversion to either an image or pdf, for use away from the program.
- Re-arranging the ui and improving the overall look.
How To Use
- Load an image into the application by clicking the Load Image button.
- Controll the size of your cross stich pattern by setting the width, with the width controll box.
- Select from the list of DMC values, which floss’ you would like to use with your pattern.
- Or, select how many different threads you would like to use and the program will find the best suitable DMC colours.
- Check the dithering box if you would like the image to be dithered. Setting the value next to the check box controlls how much dithering you want to be applied (1.0 is standard)
- Pressing the convert button will start the image conversion and will result in the pattern being displayed on a large grid.
- You can right click any grid cell to mark it red when you have stitched it (currently can’t unmark).
- Using the Save and Load buttons, you can save a pattern for loading if you need to close the program.
About colour matching
The auto match colour feature gives the ability to generate a palette of DMC thread colours using the colours that make up the original image.
When using this you must trial different values of “colour uniqueness”. This value determines how similar the auto matched colours are allowed to be. The larger the value, the more unique the colour palette becomes.
This was implemented upon realising that the first implementation only selected the top x amount of common colours. Which was an issue, as it severely reduced how varied the shades of colours in the palette were. For example, if converting an image of a large green field with a small amout of red flowers. The auto matched colours would include mostly greens, as this is the shade of colour that dominates the image. The palette would likely not have a shade of red, and the flowers would match to the closest possible colour (probably a shade of green).
The following figures show how the colour uniqueness of the auto matched thread colours effects the outcome of a conversion.
Uniqueness of 1 Uniqueness of 5
Uniqueness of 9 Uniqueness of 14
As shown, a default setting of 1 does not match some of the colours that only appear in small amounts. However, these colours that don’t appear much are actually quite important in getting a decent conversion. As without them you lose a lot of the look that the original image had.
You also have to be cautious of setting the value too high. As doing so can result in too large of a similarity gap, resulting in not being able to find enough dissimilar colours in the original image. You can see this in the last of the 4 images above. If you maximize the image, you will see that the uniqueness value is set to 14, and in the bottom left, the palette count is only 8/454. Despite telling the program to match 15 colours. There are simply not enough unique colours in the image to comply with the set uniqueness value. Meaning the value needs to be reduced in order to get the desired number of matched colours.
Features I Would Like To Add
- Save and load previous conversions. As well as saving and loading of marked grid cells, to keep a users stitching progress.
- Bigger floss selection. Such as brands of floss other than DMC.
- Ability to see what the floss colours look like next to the selection panel.
- Track how long a user has been stitching a pattern, and estimate a completion date.
- Display what coloured floss is actually in the converted image, as the entire palette may not be used. Just because a colour has been selected, certain colours may never be matched to pixels in the users image.
- Track each colour floss and the amount required. With a display showing how many stitches of that colour are left to stitch in the image.
- Ability to save a converted iamage pattern to pdf in order to print it out.
- Update button that links to this project’s repo, so users can get the latest version. (Could store version number in code and check against current release version number. Then alert if users exe is not the latest)
- Option to paint your own pattern using a palette selector and drawing(clicking) directly on the grid.