Page 1 of 1

Channel Packing Images Sequences

Posted: 2018-10-05T09:19:45-07:00
by blanks
Hi, I have a situation where I have potentially hundreds of images in an animated frame sequence. I would like to pack the frames into the channels of new images.

For example:

input 1 becomes output 1 Red channel
input 2 becomes output 1 Green channel
input 3 becomes output 1 Blue channel
input 4 becomes output 1 Alpha channel
... but then....
input 5 becomes output 2 Red channel...and so on

An input folder with 100 frames packed into the R, G, B & A channels resulting in an output folder of only 25 images.

I think this should be possible, but I cant work out how. I use Imagemagick with .BAT files to pack sprite sheets and things, but I dont know how to do this.

I'm an artist, not a programmer so any advice or examples of this in windows batch style would be greatly appreciated.

Thanks you for any help you can offer.

Re: Channel Packing Images Sequences

Posted: 2018-10-05T10:02:20-07:00
by snibgo
Obviously, this will work only if your inputs are grayscale. The task is simple:

Code: Select all

magick in1.png in2.png in3.png in4.png -combine out1.png
Repeat for all your inputs.