itgalaxy / bmp2image
Creates an image from a Bitmap
Installs: 8 812
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 2
Open Issues: 1
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- mikey179/vfsstream: ~1.6.0
- phpunit/php-code-coverage: ~4.0.0
- phpunit/phpunit: ~5.5.0
README
bmp2image converts BMP to images (JPG, JPEG, PNG, GIF and etc) format.
Installation
Install with Composer
If you're using Composer to manage dependencies, you can add Requests with it.
composer require itgalaxy/bmp2image
or
{ "require": { "itgalaxy/bmp2image": ">=1.0.0" } }
Install source from GitHub
To install the source code:
git clone git://github.com/itgalaxy/bmp2image.git
And include it in your scripts:
require_once '/path/to/bmp2image/Bmp2Image.php';
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:
curl -L https://github.com/itgalaxy/bmp2image/tarball/master | tar xzv
or
wget https://github.com/itgalaxy/bmp2image/tarball/master -O - | tar xzv
Usage
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $jpg = \Itgalaxy\Bmp2Image::make('path/to/image.bmp'); imagejpeg($jpg, 'path/to/save/image.jpg'); imagedestroy($jpg);
Contribution
Don't hesitate to create a pull request. Every contribution is appreciated.