Create a true color image in PHP – command line example (imagecreatetruecolor)

0

Original code (works in web server):

Modified code (works in command line):

Credits:
Some snippets adapted from documentation
provided by The PHP Documentation Group.

The PHP manual text and comments
are covered by the Creative Commons Attribution 3.0 License,
copyright (c) the PHP Documentation Group.
https://www.php.net/manual/en/cc.license.php
https://www.php.net/manual/en/copyright.php

The original snippet is here:
https://www.php.net/manual/en/function.imagecreatetruecolor.php

0