PHPackages                             urbanplum/bmp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. urbanplum/bmp

ActiveLibrary[Image &amp; Media](/categories/media)

urbanplum/bmp
=============

BMP image support for PHP's GD

v1.0.1(9y ago)446.0k↓30.8%MITPHPPHP &gt;=5.5.0

Since May 6Pushed 9y ago2 watchersCompare

[ Source](https://github.com/urbanplum/php-bmp)[ Packagist](https://packagist.org/packages/urbanplum/bmp)[ Docs](https://github.com/urbanplum/php-bmp)[ RSS](/packages/urbanplum-bmp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

bmp
===

[](#bmp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/13957a8da63f70ee6c614bc47df62ef3c683ace87190b5bfeb3d1d423e504c4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757262616e706c756d2f626d702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/urbanplum/bmp)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/89008ae70eb3a7179243c5869b46714b4e1228b962bf2119bdfadffdd7b11c19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f757262616e706c756d2f626d702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/urbanplum/bmp)

Adds BMP image support for PHP's GD functionality.

Install
-------

[](#install)

Via Composer

```
$ composer require urbanplum/bmp
```

Usage
-----

[](#usage)

```
require sprintf('%s/../vendor/autoload.php', __DIR__);

$bmp = new Urbanplum\Bmp\Bmp();

// creating a GD resource from a file
$resource = $bmp->createFromFile('/path/to/file.bmp');

// creating a GD resource from a string (e.g. from DB, S3, etc.)
$resource = $bmp->createFromString($bitmapString);

// output image to a browser
header('Content-Type: image/jpeg');
imagejpeg($resource);

// clean up
imagedestroy($resource);
```

Credits
-------

[](#credits)

- [mgutt](http://www.programmierer-forum.de/function-imagecreatefrombmp-welche-variante-laeuft-t143137.htm)
- Fabien Menager
- [John Smith](https://github.com/john-n-smith)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~155 days

Total

3

Last Release

3354d ago

Major Versions

v0.1.0 → v1.0.02017-03-08

PHP version history (2 changes)v0.1.0PHP &gt;=5.6.0

v1.0.1PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ada9a1d50c7f35543667df79dba825e65114bf15feb606cccb2d1a40241134b?d=identicon)[john-n-smith](/maintainers/john-n-smith)

---

Top Contributors

[![john-n-smith](https://avatars.githubusercontent.com/u/1314694?v=4)](https://github.com/john-n-smith "john-n-smith (10 commits)")

---

Tags

gdBMPbitmapurbanplumphp-bmp

### Embed Badge

![Health badge](/badges/urbanplum-bmp/health.svg)

```
[![Health](https://phpackages.com/badges/urbanplum-bmp/health.svg)](https://phpackages.com/packages/urbanplum-bmp)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[gregwar/image

Image handling

1.0k4.1M51](/packages/gregwar-image)[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6038.1M54](/packages/rosell-dk-webp-convert)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
