PHPackages                             gravitymedia/magickly - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gravitymedia/magickly

AbandonedArchivedLibrary

gravitymedia/magickly
=====================

Magickly is an image processing library for PHP.

05PHP

Since Sep 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/GravityMedia/Magickly)[ Packagist](https://packagist.org/packages/gravitymedia/magickly)[ RSS](/packages/gravitymedia-magickly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Magickly
========

[](#magickly)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0831b93b03c42098a3a14c40fcefc2b3621adc63124ebccc6eca95d5cdba2705/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677261766974796d656469612f6d616769636b6c792e737667)](https://packagist.org/packages/gravitymedia/magickly)[![Software License](https://camo.githubusercontent.com/9c84d8d61cac607a340a1c9c3b5cbd29281cdd3f3385a59d18c732e0d230ebb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f677261766974796d656469612f6d616769636b6c792e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/196b93fa3ce0e9c17e1a743c5da72e164e46aad7327538b68ae10dd77beea970/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f477261766974794d656469612f4d616769636b6c792e737667)](https://travis-ci.org/GravityMedia/Magickly)[![Coverage Status](https://camo.githubusercontent.com/8a8eca8125a7f6b3505f62a12f71ed4ca3de716adf7277cda4518f84127dafe8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f477261766974794d656469612f4d616769636b6c792e737667)](https://scrutinizer-ci.com/g/GravityMedia/Magickly/code-structure)[![Quality Score](https://camo.githubusercontent.com/20fb6e9579b69655a98f661ef41bf9cdec0e4c6c8d6505d54e2150f9d74653cb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f477261766974794d656469612f4d616769636b6c792e737667)](https://scrutinizer-ci.com/g/GravityMedia/Magickly)[![Total Downloads](https://camo.githubusercontent.com/851bc7e6fd2cead9acb2354f62068fec7b92a0c193304c00bd79b2b2350446e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261766974796d656469612f6d616769636b6c792e737667)](https://packagist.org/packages/gravitymedia/magickly)[![Dependency Status](https://camo.githubusercontent.com/7fcf7b8e550833f58f66cbf11b5a13f6f247e2b44888d6fb1ec74126e1f1dfb9/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f677261766974796d656469613a6d616769636b6c792e737667)](https://www.versioneye.com/user/projects/570bea0dfcd19a0039f16acd)

Magickly is an image processing library for PHP.

Requirements
------------

[](#requirements)

This library has the following requirements:

- PHP 5.6+

Installation
------------

[](#installation)

Install Composer in your project:

```
$ curl -s https://getcomposer.org/installer | php
```

Add the package to your `composer.json` and install it via Composer:

```
$ php composer.phar require gravitymedia/magickly
```

Usage
-----

[](#usage)

This simple example is showing how to convert an image to RGB color space.

```
// 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());
```

Testing
-------

[](#testing)

Clone this repository, install Composer and all dependencies:

```
$ php composer.phar install
```

Run the test suite:

```
$ php composer.phar test
```

Generating documentation
------------------------

[](#generating-documentation)

Clone this repository, install Composer and all dependencies:

```
$ php composer.phar install
```

Generate the documentation to the `build/docs` directory:

```
$ php composer.phar doc
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Daniel Schröder](https://github.com/pCoLaSD)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e61ae24c7c960cd7bd94e0f0ac4501df18a8026d2538b0ed99176aec0462c16a?d=identicon)[schroedan](/maintainers/schroedan)

### Embed Badge

![Health badge](/badges/gravitymedia-magickly/health.svg)

```
[![Health](https://phpackages.com/badges/gravitymedia-magickly/health.svg)](https://phpackages.com/packages/gravitymedia-magickly)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
