30 Graphics with PHP
PHP is not Photoshop or GIMP; that much is clear. Nevertheless, with PHP, you can at least generate simple graphics dynamically.
Some applications show that it is quite attractive to generate graphics dynamically: Just think of a personalized greeting to the user with nice lettering or a simple, dynamically generated diagram. Graphics are also used for security mechanisms: For example, graphically generated captchas from which the user has to type a number or text can prevent a login from being cracked by uninterrupted attempts.
In PHP, GD (version) 2 is used for this. An alternative project called PIMP was also discussed for a long time, but it was never completed. In this chapter, we therefore describe GD 2 in detail and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access