Mobile app version of vmapp.org
Login or Join
Shanna688

: How to automate jpg creation for all colors? I need to get each hexadecimal color in jpgs (or another format). I don't know if this is possible in PS by automating the process somehow, but

@Shanna688

Posted in: #Automation #Color

I need to get each hexadecimal color in jpgs (or another format). I don't know if this is possible in PS by automating the process somehow, but ideally I'd like to create the image in let's say #ffffff and have the computer go through all the colors and create a jpg for each file.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna688

1 Comments

Sorted by latest first Latest Oldest Best

 

@Pierce403

This is done pretty easily with ImageMagick's primitive draw command.

The following command should output a 100px x 100px red image.

convert -size 100x100 xc:white -fill "rgb(255,0,0)"
-draw "rectangle 0,0 100,100" FF0000.jpg


Use whatever command line scripting you're familiar with to automate this and loop it over all 16.7 million possible RGB colors. The variables changed with each iteration would be your color within rgb() and the filename at the end.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme