PHPackages                             weblabormx/intervention-plus - 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. [Image &amp; Media](/categories/media)
4. /
5. weblabormx/intervention-plus

ActiveLibrary[Image &amp; Media](/categories/media)

weblabormx/intervention-plus
============================

Package that extends invervention/image package and adds new functions.

v1.0.3(5y ago)02.9kMITPHP

Since Oct 27Pushed 4y agoCompare

[ Source](https://github.com/weblabormx/Intervention-Plus)[ Packagist](https://packagist.org/packages/weblabormx/intervention-plus)[ Docs](https://github.com/weblabormx/intervention-plus)[ RSS](/packages/weblabormx-intervention-plus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Intervention Plus
=================

[](#intervention-plus)

Package that extends `intervention/image` and adds new functions.

This package requires Intervention, so intervention will be always updated on this package. We are a completely separed packages.

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

[](#installation)

You can install the package via composer:

```
composer require weblabormx/intervention-plus
```

Usage
-----

[](#usage)

Use it exactly the same that intervention static

```
use WeblaborMX\InterventionPlus\Image;

$image = Image::make('tests/picture.jpg')->resizeWithRatio(300, 200);
```

New functions
-------------

[](#new-functions)

- **backgroundColor($color)**: Add background color to an image with transparency
- **base64($format = null, $quality = 100)**: Get the base 64 of the image
- **colorizeWhite($color)**: Change white color to another one, requires color on hexadecimal
- **contrast2($level)**: Another function for executing contrast, original function doesnt work with negative values
- **copy()**: To clone the object easily
- **foregroundColor($color)**: Change the foreground color of a transparent image
- **get($format = null, $quality = 100)**: Same as encode but format is not required and result is a string
- **path()**: Get path of the file
- **resizeWithRatio($width, $height)**: Resize keeping the ratio of the image
- **transparentCoords()**: Get the coordinates for a transparent image, gets x, y, x2 and y2

### Testing

[](#testing)

```
phpunit test
```

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Emailware
---------

[](#emailware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending an email with the url of the website in production to add it to our website

Our email address is:

We publish all received emails [on our company website](http://weblabor.mx).

Credits
-------

[](#credits)

- [Carlos Escobar](https://github.com/skalero01)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Weblabor is a webdesign agency based in México. You'll find an overview of all our open source projects [on our website](http://weblabor.mx).

Does your business depend on our contributions? Reach out and support us All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

- Support us on Patreon -
- Support us with a Paypal donation -

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~9 days

Total

4

Last Release

2000d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13341096?v=4)[Weblabor](/maintainers/weblabormx)[@weblabormx](https://github.com/weblabormx)

---

Top Contributors

[![skalero01](https://avatars.githubusercontent.com/u/2976641?v=4)](https://github.com/skalero01 "skalero01 (8 commits)")

---

Tags

weblabormxintervention-plus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weblabormx-intervention-plus/health.svg)

```
[![Health](https://phpackages.com/badges/weblabormx-intervention-plus/health.svg)](https://phpackages.com/packages/weblabormx-intervention-plus)
```

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[jenssegers/imagehash

Perceptual image hashing for PHP

2.1k2.2M5](/packages/jenssegers-imagehash)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4374.2M13](/packages/lasserafn-php-initial-avatar-generator)[rtippin/messenger

Laravel messenger suite.

45035.8k4](/packages/rtippin-messenger)

PHPackages © 2026

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