R
R
reforket2017-02-24 15:07:06
Working with color
reforket, 2017-02-24 15:07:06

How to generate images from RGB?

There is an excel document with a list of RGB colors in the form of a code.
We need images of these flowers in .jpg / .png format.
How can I do this, maybe there is some specialized software?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2017-02-24
@saboteur_kiev

In any graphic editor. Even Paint will do.
Example for python (previously need pip3.5.exe install Pillow)

from PIL import Image
rgblist = ("00ff00", "ff00ff","aabbcc")

for color in rgblist:
 im = Image.new("RGB", (100,100), "#"+color)
 im.save( "color-"+color+".png")

Loop through your colors and go.

1
15432, 2017-02-24
@15432

- save the table in a simple text format .csv
- parse with anything (python, C++, C#) and save in some simple PPM format
- resave to PNG or JPG with any editor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question