Generate all possible heirarchical layer composites
Posted: 2017-02-28T11:49:36-07:00
Yeah, just found out that the word hierarchical exists. Bloody ugly word I tell ya.
Anywho, I've got a bunch of images I need to separate into pieces, and then assemble each possible combination of pieces into layers. I've done this a few times by hand in Photoshop, and boy am I tired of it. Just having 5 separate images to combine means I've to save easily over a hundred images. I've made a quick wee archive with solid colour images (psd with layers, source images, and a few example results) to give an idea of what I'm trying to achieve.
Kinda messed up a bit, as I should have shifted the "ABackground" and "BForeground" layers around (i.e, more saved combinations), but the burnout is rather real. Can't seem to make any attachments, so I uploaded it to Mega: https://mega.nz/#!vxVyFZZZ!NTCIOmcZxdvl ... _eHaM37XH0
To elaborate on what I'm trying to achieve:
The folders are named in a hierarchy. The prefix A denotes the background image, the prefix B denotes the image to lay over the background, the prefix C denotes what gets laid over C, etc. Not all "pieces" will overlap, which is expected behaviour.
However, the images in folder A should never be laid on top of the images in folder B. The images in folder B should never be laid on top of the images in folder C. Etc.
The image pieces will be in .png format, and there is no need to re-position them as all the images will have the same width and height.
So aye, is there any good way to do this with ImageMagick? I can do a bit of Pascal through the Lazarus IDE, if that makes things easier.
Anywho, I've got a bunch of images I need to separate into pieces, and then assemble each possible combination of pieces into layers. I've done this a few times by hand in Photoshop, and boy am I tired of it. Just having 5 separate images to combine means I've to save easily over a hundred images. I've made a quick wee archive with solid colour images (psd with layers, source images, and a few example results) to give an idea of what I'm trying to achieve.
Kinda messed up a bit, as I should have shifted the "ABackground" and "BForeground" layers around (i.e, more saved combinations), but the burnout is rather real. Can't seem to make any attachments, so I uploaded it to Mega: https://mega.nz/#!vxVyFZZZ!NTCIOmcZxdvl ... _eHaM37XH0
To elaborate on what I'm trying to achieve:
The folders are named in a hierarchy. The prefix A denotes the background image, the prefix B denotes the image to lay over the background, the prefix C denotes what gets laid over C, etc. Not all "pieces" will overlap, which is expected behaviour.
However, the images in folder A should never be laid on top of the images in folder B. The images in folder B should never be laid on top of the images in folder C. Etc.
The image pieces will be in .png format, and there is no need to re-position them as all the images will have the same width and height.
So aye, is there any good way to do this with ImageMagick? I can do a bit of Pascal through the Lazarus IDE, if that makes things easier.