#py5 comes with some cool integrations with other #Python libraries, such as the ability to convert #Pillow images, #shapely and #trimesh objects.
But you can create and register your own conversion functions too!
DeprecationWarning: 'mode' parameter is deprecated and will be removed in Pillow 13 (2026-10-15)
img1 = PIL.Image.fromarray(my_array, mode="RGB")
So I went to see the documentation:
https://hugovk-pillow.readthedocs.io/en/latest/reference/Image.html#PIL.Image.fromarray
And came out empty handed, that is, couldnât understand what to do instead :(
And the plot thickens:
https://github.com/python-pillow/Pillow/pull/9063
(@py5coding I guess youâll want to check this out at some point. py5_tools.animated_gif uses this)
DeprecationWarning: 'mode' parameter is deprecated and will be removed in Pillow 13 (2026-10-15)
img1 = PIL.Image.fromarray(my_array, mode="RGB")
So I went to see the documentation:
https://hugovk-pillow.readthedocs.io/en/latest/reference/Image.html#PIL.Image.fromarray
And came out empty handed, that is, couldnât understand what to do instead :(
And the plot thickens (this affects many projects, there are some workarounds, but some argument about ârevertingâ this change allowing some âmodeâ on import):
https://github.com/python-pillow/Pillow/pull/9063
(@py5coding@py5coding I guess youâll want to check this out at some point. py5_tools.animated_gif uses mode=âRGBâ)
#Pillow #PIL #Python
On Image.fromarray():
DeprecationWarning: 'mode' parameter is deprecated and will be removed in Pillow 13 (2026-10-15)
img1 = PIL.Image.fromarray(my_array, mode="RGB")
So I went to see the documentation:
https://hugovk-pillow.readthedocs.io/en/latest/reference/Image.html#PIL.Image.fromarray
And came out empty handed, that is, couldnât understand what to do instead :(
And the plot thickens (this affects many projects, there are some workarounds, but some argument about ârevertingâ this change allowing some âmodeâ on import):
https://github.com/python-pillow/Pillow/pull/9063
(@py5coding@py5coding I guess youâll want to check this out at some point. py5_tools.animated_gif uses mode=âRGBâ)
I found a new pillow. đ´ â Read more
10 Normal Items You Didnât Know Were Once Part of Burial Rituals
We tend to think of everyday objectsâpillows, perfumes, makeupâas inventions born from comfort, beauty, or practicality. But dig through the layers of history, and youâll find that some of these now-ordinary items have surprising ties to ancient burial rites, funerary customs, or corpse preparation. To be clear: not all of these items were originally invented [âŚ]
The post [10 Normal Items You Didnât Know ⌠â Read more
My kitten is using my hand as a pillow â Read more
Chillinâ like royalty on my golden pillow. đ â Read more
My cat took over my pillow â Read more
Sam Scrantonâs new album Body Pillow lives up to its name. Giving it a big hug again this morning. #nowplaying
my little travel pillow arrived today for my feet while sitting in the meditation bench. paired with my foam pad for my knees, I think I can begin trying to test this out for my future portable kneeling workspace. #updates #halfbakedideas
idea for gifts â https://hellacomfy.com/products/free-shipping-high-quality-80cm-sea-lion-toys-3d-novelty-throw-pillows-soft-seal-plush-stuffed-house-warming-party-hold-pillow?s=09