ico - Wand Python multi-size icon -


i'm trying use wand create multi-size ico, don't find talking that, normal conversion, ico... i've found "sequences":

https://wand.readthedocs.org/en/latest/roadmap.html

and sequences need, see samples trying read multiple images, not how create, missing something? or not possible?

or possible using pil/pillow?

you can append() single image image.sequence list. example:

from wand.color import color wand.image import image   image(width=32, height=32, background=color('red')) ico:     image(width=16, height=16, background=color('green')) s16:         ico.sequence.append(s16)     ico.save(filename='multisized.ico') 

result (multisized.ico):

multisized.ico


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -