I have diffrent color codes like #00FFFF,#FF00FF...
im = Image.new("CMYK", (255, 100),str(color))
But it will always generate a "black" color image, Any pointers will be helpful.
I have diffrent color codes like #00FFFF,#FF00FF...
im = Image.new("CMYK", (255, 100),str(color))
But it will always generate a "black" color image, Any pointers will be helpful.
Try something like this (for this example i use "RGB", so replace the colors you want in rgb, should be similar with "CMYK"):
MAX_W, MAX_H = 350, 350
im = Image.new('RGB', (MAX_W, MAX_H), (238, 238, 238))
draw = ImageDraw.Draw(im)