PHPackages                             barberry/plugin-imagemagick - 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. barberry/plugin-imagemagick

ActiveBarberry-plugin

barberry/plugin-imagemagick
===========================

3.0.0(5y ago)18.0k—8.3%13[1 PRs](https://github.com/Magomogo/barberry-plugin-imagemagick/pulls)2MITPHPPHP ^5.6 || ^7.0CI failing

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Magomogo/barberry-plugin-imagemagick)[ Packagist](https://packagist.org/packages/barberry/plugin-imagemagick)[ RSS](/packages/barberry-plugin-imagemagick/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (19)Used By (2)

barberry-plugin-imagemagick
===========================

[](#barberry-plugin-imagemagick)

[![Build Status](https://camo.githubusercontent.com/6a7139b703be28a7cf41802d95487dadacf09ab8599a524cb0a22a2e44aca3a0/68747470733a2f2f7472617669732d63692e6f72672f4d61676f6d6f676f2f62617262657272792d706c7567696e2d696d6167656d616769636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Magomogo/barberry-plugin-imagemagick)

Barberry plugin for handling images

Parameters syntax:
------------------

[](#parameters-syntax)

All parameters must be listed with no separators and the order of parameters cannot be changed. Any parameter can be ommited.

```
[width]x[height][noUpscale]bg[color]canvas[width]x[height]quality[percent]colorspace[name]strip

```

### \[width\]x\[height\]\[noUpscale\]

[](#widthxheightnoupscale)

Main info about height and width of corresponding image. In case `noUpscale` provided image will only shrink, but never grow.

### bg\[color\]

[](#bgcolor)

Background color of image in format 11AAFF (hex code format without # at the beginning)

### canvas\[width\]x\[height\]

[](#canvaswidthxheight)

Info about height and width of canvas the real added params for image imagemagick will be:

```
-size [width]x[height] xc:#[color] +swap -gravity center -composite

```

`[color]` by default is 000000 if no background color is set, otherwise uses bg color

### quality\[percent\]

[](#qualitypercent)

Quality of jpeg image in percents. Range from 1 to 100

### colorspace\[name\]

[](#colorspacename)

The [colorspace](http://www.imagemagick.org/script/command-line-options.php#colorspace "imagemagick docs") of image. Allowed colorspaces:

```
Gray|CMYK|sRGB|Transparent|RGB

```

### trim\[color\]x\[percent\]

[](#trimcolorxpercent)

[Remove](http://www.imagemagick.org/Usage/crop/#trim "imagemagick docs") any borders or edges of an image which did does not change in color or transparency. In other words it removes the 'boring' bits surrounding an image.

`[color]` is color, which you want to trim

`[percent]` is percent of fuzz to be applied while trimming (more percent, possibly more image will be cut)

### strip

[](#strip)

In some cases color profiles can take up significant part of your image, especially if image is small or resized. This option allows to cut color profiles out.

### Environment

[](#environment)

There are two environment options, which regulate image's max size:

- `MAX_WIDTH`
    - default value is 800
- `MAX_HEIGHT`
    - default value is 600

If you need to be able to generate a full hd/2k/4k size, please set up them

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 63.9% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~210 days

Recently: every ~287 days

Total

15

Last Release

1999d ago

Major Versions

0.1.x-dev → 1.0.02013-04-02

1.3.0 → 2.0.02018-06-13

2.2.0 → 3.0.02020-11-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b278f373383905fadd1bfdee771c682805638284672681cd5d912e74cb794ad?d=identicon)[Magomogo](/maintainers/Magomogo)

---

Top Contributors

[![Magomogo](https://avatars.githubusercontent.com/u/728657?v=4)](https://github.com/Magomogo "Magomogo (46 commits)")[![kevich](https://avatars.githubusercontent.com/u/2560726?v=4)](https://github.com/kevich "kevich (15 commits)")[![ReDetection](https://avatars.githubusercontent.com/u/458005?v=4)](https://github.com/ReDetection "ReDetection (6 commits)")[![ykovaleva](https://avatars.githubusercontent.com/u/2618863?v=4)](https://github.com/ykovaleva "ykovaleva (2 commits)")[![jmeivan](https://avatars.githubusercontent.com/u/4037865?v=4)](https://github.com/jmeivan "jmeivan (1 commits)")[![antonsacred](https://avatars.githubusercontent.com/u/57615458?v=4)](https://github.com/antonsacred "antonsacred (1 commits)")[![Dilan](https://avatars.githubusercontent.com/u/1371337?v=4)](https://github.com/Dilan "Dilan (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/barberry-plugin-imagemagick/health.svg)

```
[![Health](https://phpackages.com/badges/barberry-plugin-imagemagick/health.svg)](https://phpackages.com/packages/barberry-plugin-imagemagick)
```

###  Alternatives

[barberry/barberry

3161.9k](/packages/barberry-barberry)

PHPackages © 2026

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