1

I have an image that I would like to make into a cross-stitch sewing pattern with around 15 colours.

I have a swatch of all 454 possible thread colours and their rough hex equivalents.

In Photoshop I have tried using Indexed Colour mode and then loading my swatch as the palette (the colours to choose from) but it seems to only load the first 256 colours and thus not do a very good job replicating the image using the thread colours.

I am fine with a final result that is 256 colours, but I would like it to pick from the full 454 to get there.

After I load my swatch of 454 colours it only shows 256

Any ideas on how to do this?

1

"Indexed color mode" is where the image has a palette index (a set of numbers paired with a set of RGB color definitions) and then each pixel simply refers to the index number.

By tradition, the index value is one byte, which means that you are limited to 2^8 entries which is 256.

In order to have more color swatches, you want to use RGB mode, load the swatches, and then use only those swatches for the design, avoiding any blending, blurring, feathering, opacity, overlay, etc. (basically anything that will blend two of the swatches will result in a color that is not in the swatch list.

If you use 256 or fewer swatches in the design, you can then reduce it to indexed mode using either "exact" palette or making a custom palette with only the swatches you meant to choose and then setting it to that palette. In the second case, you probably can use dither etc when converting since you are forcing the palette to a known set of thread colors. And in the second case where you force the palette, and use dithering, you can use some blending etc.

I would recommend you test out the whole process on a few known designs before you spend {x} hours on a design that cannot be converted.

  • 1
    technically, the index is simply implicit in the position of the rgb value in the palette I think, so the pixel value stored is the offset from the start of the palette. – Yorik Dec 7 '16 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.