The instructions are simple enough in Wand docs to read a sequential image (e.g. animated gif, icon file, etc.):
>>> from wand.image import Image >>> with Image(filename='sequence-animation.gif') as image: ... len(image.sequence)
... but I'm not sure how to create it.
In Ruby, it is easy to use RMagick since you have ImageList s. (see my point for an example.)
I tried to create an Image (as a βcontainerβ) and create an instance of each SingleImage using the image path, but I'm sure this is wrong, especially since the constructor documentation for SingleImage does not look for end-user use.
I also tried to create wand.sequence.Sequence and go from this angle, but also to a dead end. I feel very lost.
source share