# Graphics

> Section in “New and Extended Functionality” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/graphics/>

## In this section

- [New GD Functions](https://php7explained.com/new-and-extended-functionality/graphics/new-gd-functions/index.html.md): PHP 7.2 adds four functions to the gd extension: imagesetclip() and imagegetclip() for clipping areas, imageopenpolygon(), and imageresolution().
- [WebP Support in imagecreatefromstring()](https://php7explained.com/new-and-extended-functionality/graphics/webp-support-in-imagecreatefromstring/index.html.md): As of PHP 7.3, imagecreatefromstring() supports the WebP format, creating a GD image resource from a string that contains a WebP image stream.

---

Previous: [gmp_perfect_power()](https://php7explained.com/new-and-extended-functionality/mathematics/gmp_perfect_power/index.html.md) | Next: [New GD Functions](https://php7explained.com/new-and-extended-functionality/graphics/new-gd-functions/index.html.md)
