urbanplum/bmp
最新稳定版本:v1.0.1
Composer 安装命令:
composer require urbanplum/bmp
包简介
BMP image support for PHP's GD
README 文档
README
Adds BMP image support for PHP's GD functionality.
Install
Via Composer
$ composer require urbanplum/bmp
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
- mgutt
- Fabien Menager
- John Smith
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 45.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-17