urbanplum/bmp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

urbanplum/bmp

最新稳定版本:v1.0.1

Composer 安装命令:

composer require urbanplum/bmp

包简介

BMP image support for PHP's GD

README 文档

README

Latest Version on Packagist Software License Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 45.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-17