dev-master
9999999-dev https://github.com/GravityMedia/MagicklyMagickly is an image processing library for PHP.
MIT
The Requires
- php >=5.6
- guzzlehttp/streams ^3.0
The Development Requires
Wallogit.com
2017 © Pedro PelĂĄez
Magickly is an image processing library for PHP.
Magickly is an image processing library for PHP., (*2)
This library has the following requirements:, (*3)
Install Composer in your project:, (*4)
$ curl -s https://getcomposer.org/installer | php
Add the package to your composer.json and install it via Composer:, (*5)
$ php composer.phar require gravitymedia/magickly
This simple example is showing how to convert an image to RGB color space., (*6)
// Initialize autoloader
require_once __DIR__ . '/vendor/autoload.php';
// Import classes
//use GravityMedia\Magickly\Gmagick\Magickly;
use GravityMedia\Magickly\Imagick\Magickly;
use GravityMedia\Magickly\Image\Palette;
// Create Magickly object
$magickly = new Magickly();
// Open image
$image = $magickly->open('/path/to/image/file.png');
// Create RGB palette
$palette = new Palette\RGB();
// Apply RGB palette to image
$image = $image->withPalette($palette);
// Get image data as stream
$stream = $image->getStream();
// Save image as a copy
file_put_contents('/path/to/image/copy.png', $stream->getContents());
Clone this repository, install Composer and all dependencies:, (*7)
``` bash $ php composer.phar install, (*8)
Run the test suite: ``` bash $ php composer.phar test
Clone this repository, install Composer and all dependencies:, (*9)
``` bash $ php composer.phar install, (*10)
Generate the documentation to the `build/docs` directory: ``` bash $ php composer.phar doc
Please see CONTRIBUTING for details., (*11)
The MIT License (MIT). Please see License File for more information., (*12)
Magickly is an image processing library for PHP.
MIT