PHPackages                             justijndepover/crop-images - 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. justijndepover/crop-images

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

justijndepover/crop-images
==========================

Bulk crop images to a specific format

1.2.0(5y ago)015MITPHP

Since Oct 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/justijndepover/crop-images)[ Packagist](https://packagist.org/packages/justijndepover/crop-images)[ Docs](https://github.com/justijndepover/crop-images)[ RSS](/packages/justijndepover-crop-images/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (10)Used By (0)

Crop Images
===========

[](#crop-images)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2476af28ebb6530347ecf1ed11c5b36a51c2663a7b39db4ac7f3a780d04fe092/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a757374696a6e6465706f7665722f63726f702d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/crop-images)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/b0203cb61a2ad82d22bc4775ae5f2cde357df47d051f5eada8d7d634082c8caa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a757374696a6e6465706f7665722f63726f702d696d616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/crop-images)

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

[](#installation)

You can install the package with composer

```
composer global require justijndepover/crop-images
```

Usage
-----

[](#usage)

```
crop [source] [width] [height] [-w, --whitespace]

```

This will generate a new folder in your current directory: `[width]x[height]` with all the cropped images from your source directory.

### Arguments

[](#arguments)

- source: The source directory
- width: The width of the new images
- height: The height of the new images
- whitespace: add whitespace around the images, defaults to false

If you provide one of the `width` or `height` arguments with `null`, only a resize will happen:

```
crop originals 1200 null
```

will generate images with a width of 1200 inside: `/1200x`, height is variable.

Security
--------

[](#security)

If you find any security related issues, please open an issue or contact me directly at [justijndepover@gmail.com](justijndepover@gmail.com).

Contribution
------------

[](#contribution)

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~2 days

Total

9

Last Release

2015d ago

Major Versions

0.6.0 → 1.0.02020-11-04

### Community

Maintainers

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

---

Top Contributors

[![justijndepover](https://avatars.githubusercontent.com/u/9008623?v=4)](https://github.com/justijndepover "justijndepover (16 commits)")

---

Tags

cropcrop-imagesimagephpscriptingphpimagescropjustijndepover

### Embed Badge

![Health badge](/badges/justijndepover-crop-images/health.svg)

```
[![Health](https://phpackages.com/badges/justijndepover-crop-images/health.svg)](https://phpackages.com/packages/justijndepover-crop-images)
```

###  Alternatives

[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

141110.4k6](/packages/stefangabos-zebra-image)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[ambroisemaupate/intervention-request

A customizable Intervention Image wrapper to use image simple re-sampling features over urls and a configurable cache.

4242.4k2](/packages/ambroisemaupate-intervention-request)

PHPackages © 2026

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