I started looking for a graphics library using the same instructions in
C and PHP. The "GD library" was the first one I had noticed. But MAMP
offers a direct installation of ImageMagick = namely "Imagick" under PHP:
https://en.wikipedia.org/wiki/ImageMagick
Comparing the two options there are probably equivalent for the usage we
anticipate: drawing lines and rectangles! There is a comparison on that
page dating back to May 2020:
https://blog.runcloud.io/imagemagick/
So, I am following the path of ImageMagick unless there is a good reason
to prefer GD…
Bernard
|