PHPackages                             ucraft-com/image-manipulator - 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. ucraft-com/image-manipulator

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

ucraft-com/image-manipulator
============================

ImageManipulator is a versatile library offering advanced image processing features, including resizing, trimming, cropping, and WebP conversion.

0.0.1(1y ago)15.7k↓40%1MITPHPPHP ^8.1

Since Jul 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ucraft-com/image-manipulator)[ Packagist](https://packagist.org/packages/ucraft-com/image-manipulator)[ RSS](/packages/ucraft-com-image-manipulator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

ImageManipulator package
========================

[](#imagemanipulator-package)

ImageManipulator is a comprehensive package designed for advanced image processing tasks. It provides robust functionality for various image manipulations, ensuring both flexibility and efficiency in handling images.

Features
--------

[](#features)

- **Resize**: Dynamically adjust the dimensions of images while maintaining aspect ratio or using custom scaling.
- **Trim**: Automatically remove unnecessary borders or whitespace from images to optimize visual presentation.
- **Crop**: Extract specific portions of an image based on defined coordinates or focus areas.
- **WebP Conversion**: Efficiently convert images to the WebP format, ensuring optimal balance between image quality and file size for web use.

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

[](#requirements)

- **PHP**: 8.1 or higher
- **Imagick PHP extension**: You need to have the [Imagick PHP extension](https://www.php.net/manual/en/book.imagick.php) installed and enabled to use the ImageManipulator library.

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

[](#requirements-1)

- **PHP**: 8.1 or higher
- **Imagick PHP extension**: You need to have the [Imagick PHP extension](https://www.php.net/manual/en/book.imagick.php) installed and enabled to use the ImageManipulator library.

Laravel Integration
-------------------

[](#laravel-integration)

If you are using the Laravel framework, the `ImageManipulatorServiceProvider` service provider is available to register the ImageManipulator with the appropriate driver.

To integrate with Laravel, follow these steps:

1. Add the service provider to the `providers` array in your `config/app.php` file:

    ```
    'providers' => [
        // Other service providers...

        Uc\ImageManipulator\ImageManipulatorServiceProvider::class,
    ],
    ```
2. (Optional) Publish the configuration file if you need to customize the settings:

    ```
    php artisan vendor:publish --provider="Uc\ImageManipulator\ImageManipulatorServiceProvider"
    ```

This setup will register ImageManipulator with Laravel, allowing you to use it with the Laravel service container and configuration management.

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

[](#installation)

To install the ImageManipulator library, use Composer:

```
composer require ucraft-com/image-manipulator
```

```
use Uc\ImageManipulator\ImageManipulator;
use Intervention\Image\ImageManager;
use Intervention\Image\Drivers\Imagick\Driver;

// Load an image
$contents = file_get_contents('path/to/image.jpg');
$im = new ImageManipulator(new ImageManager(new Driver()));

// Resize the image to 800x600 pixels
$resizedImage = $im->resize($contents, 800, 600);

// Crop the image from (100, 100) pixels
$croppedImage = $im->crop($contents, 100, 100);

// Automatically trim borders or whitespace
$trimmedImage = $im->trim($contents);

// Convert the image to WebP format
$webpImage = $im->convertToWebP($contents);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

710d ago

### Community

Maintainers

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

---

Top Contributors

[![tiko-star](https://avatars.githubusercontent.com/u/23649500?v=4)](https://github.com/tiko-star "tiko-star (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ucraft-com-image-manipulator/health.svg)

```
[![Health](https://phpackages.com/badges/ucraft-com-image-manipulator/health.svg)](https://phpackages.com/packages/ucraft-com-image-manipulator)
```

###  Alternatives

[league/glide

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

2.6k53.3M146](/packages/league-glide)[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M181](/packages/intervention-image-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k29](/packages/bkwld-croppa)[laravel-at/laravel-image-sanitize

A small but handy package to prevent malicious code execution coming into your application through uploaded image files.

33866.8k](/packages/laravel-at-laravel-image-sanitize)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)

PHPackages © 2026

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