M
M
mijanj2021-11-25 15:10:37
Images
mijanj, 2021-11-25 15:10:37

How to generate a large number of variations of pictures from several?

I need to generate a large number of images from different variations, for example:

The basis of the image is the background color (let's say there are about a hundred different images in the backgrounds folder)
Then it randomly overlays a figure from the folder. (let's say there are about a hundred different png images in the shapes folder)
Next, a symbol is superimposed on the shape. (let's say there are about a hundred png images in the symbols folder)
Then something else is superimposed on the resulting image, and so on.

It is necessary that there are no repetitions, how can this be done automatically?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-11-25
@hint000

Something like this:
https://imagemagick.org/script/compose.php
Plus, you need to write a script with several nested loops, which will iterate over all the source material and feed it to ImageMagic for processing.
It is assumed that everything is in order with the alpha channel in the source images.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question