itgalaxy/bmp2image

Creates an image from a Bitmap

2.0.0 2016-12-15 19:26 UTC

This package is auto-updated.

Last update: 2024-11-13 10:52:16 UTC


README

Latest Stable Version Travis Build Status Dependency Status

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.

Changelog

License