Use PHP to generate image

Dear tinkerers!

I am very happy with my Inky Phat and got it to display some essential data for me.

As you see on the picture I popped it on a Raspberry Pi Zero and it works very well.

Although the Python library is capable of creating a nice interface, because I am more used to PHP I wonder if it is possible to create the image using PHP serverside and then just display it on the Inky Phat.

I know a few PHP libraries that can be used to create images, such as GD Library, ImageMagick, and Imagine. Can anyone advise if any of these libraries are suitable for generating images with the necessary color palette (yellow, black, and white) and in the correct way for the Inky Phat?

Thank you!

1 Like