PHPackages                             imagine\_cli/imagine\_cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. imagine\_cli/imagine\_cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

imagine\_cli/imagine\_cli
=========================

Command line tool for the Imagine library using the Symfony2 Console component

01.8kPHP

Since Aug 9Pushed 12y ago15 watchersCompare

[ Source](https://github.com/cakemail/ImagineCli)[ Packagist](https://packagist.org/packages/imagine_cli/imagine_cli)[ RSS](/packages/imagine-cli-imagine-cli/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ImagineCli
==========

[](#imaginecli)

Command line interface for [avalanche123/Imagine](https://github.com/avalanche123/Imagine) using the Symfony [Console](https://github.com/symfony/Console) component. Mainly done to suit my own needs, so it may not have the features you need, but feel free to fork and send pull requests.

\##Installation

\###Using composer (only way for now)

add this to your `composer.json`

```
require: {
    "imagine_cli/imagine_cli": "dev-master"
}

```

\##Usage

### crop using all options

[](#crop-using-all-options)

Crop source.png, starting at the pixel at x=20, y=20, and crop out a size 400 pixels wide and 300 pixels high and save as destination.png

```
bin/imagine_cli crop source.png destination.png --cropx=20 --cropy=20 --cropwidth=400 --cropheight=300

```

### all options are optional

[](#all-options-are-optional)

Cropping can be done with only a couple of parameters set. For example, this crop will remove a 20 pixels from the left of the image

```
bin/imagine_cli crop source.png destination.png --cropx=20

```

resize
------

[](#resize)

Resize an image to 400 pixels wide, and 300 pixels high

```
bin/imagine_cli resize source.png destination.png --width=400 --height=300

```

crop and resize
---------------

[](#crop-and-resize)

resize also takes the crop options so that the result of the crop will be resized. An example using all options:

```
bin/imagine_cli resize source.png destination.png --width=400 --height=300 --cropx=20 --cropy=20 --cropwidth=400 --cropheight=300

```

\#More information

```
bin/imagine_cli help crop

```

and

```
bin/imagine_cli help resize

```

I will add more commands and/or options as I need them. Need more now? Fork! :-) WORK IN PROGRESS!

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a08b8e66af74c9c026531b1cd2beed788a544e0526d678a02a2dfc0e3305dbb?d=identicon)[wkjagt](/maintainers/wkjagt)

---

Top Contributors

[![wkjagt](https://avatars.githubusercontent.com/u/327048?v=4)](https://github.com/wkjagt "wkjagt (23 commits)")

### Embed Badge

![Health badge](/badges/imagine-cli-imagine-cli/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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