# Graphics

> Section in “Backward Incompatible Changes › Deprecated Features” 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/backward-incompatible-changes/deprecated-features/graphics/>

## `png2wbmp()` and `jpegwbmp()`

The WBMP (Wireless Application Protocol Bitmap Format) is a pretty outdated file format for black-and-white images. It had been introduced to save on bandwidth when transferring images over mobile network connections. Well, that was clearly before YouTube and Netflix.

The `gd` extension offers functions to work with WBMP images. As of PHP 7.2, the two functions `png2wbmp()` and `jpeg2wbmp()` have been deprecated. They will be removed in PHP 8. In case you still need to create WBMP images with PHP, you can substitute the deprecated functions. Use `imagecreatefrompng()`, or `imagecreatefromjpeg()` respectively, to create an image, then call `imagewbmp()` to create a WBMP bitmap.

In addition, the function `image2wbmp()` has been deprecated in PHP 7.3.

---

Previous: [Arrays](https://php7explained.com/backward-incompatible-changes/deprecated-features/arrays/index.html.md) | Next: [Internationalisation and Unicode](https://php7explained.com/backward-incompatible-changes/deprecated-features/internationalisation-and-unicode/index.html.md)
