PHPackages                             nlybe/cropper - 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. nlybe/cropper

AbandonedArchivedElgg-plugin

nlybe/cropper
=============

Cropper jQuery image cropping tool for Elgg

2.1.3(9y ago)1211[3 issues](https://github.com/nlybe/Elgg-Cropper/issues)GPL-2.0PHPPHP &gt;=5.6

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nlybe/Elgg-Cropper)[ Packagist](https://packagist.org/packages/nlybe/cropper)[ Docs](https://github.com/nlybe/Elgg-Cropper)[ RSS](/packages/nlybe-cropper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Elgg Cropper
============

[](#elgg-cropper)

[![Elgg 2.1+](https://camo.githubusercontent.com/ee1f6abd76482f64b5afb2d995c630de7c4ed92583cbc83c1f08a123ca2c78dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e312d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ee1f6abd76482f64b5afb2d995c630de7c4ed92583cbc83c1f08a123ca2c78dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e312d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Responsive image cropping tool for Elgg, based on jQuery and integrating the JS library [Cropper](https://fengyuanchen.github.io/cropper/).

Cropper plugin replace the default core Elgg profile avatar cropping tool.

Features
--------

[](#features)

- Supports touch (mobile)
- Supports to crop on a canvas
- Responsive
- Option to add cropper as a form input
- Option to select size of preview box in settings
- Plenty of Cropper tool options available on plugin settings
- Aspectratio cropper option can be passed as param in cropper input, overriding the value plugin settings

How to Use
----------

[](#how-to-use)

### 1. Replace core Elgg profile avatar cropping tool

[](#1-replace-core-elgg-profile-avatar-cropping-tool)

If plugin is enabled, the default core Elgg profile avatar cropping tool is replaced by this image cropping tool. Several options in plugin settings can be used for customizing the tool.

### 2. Use cropper input in any form

[](#2-use-cropper-input-in-any-form)

The cropper input can be used in any Elgg form, passing just the image to crop and optionally the Aspectratio (overriding the value plugin settings):

```
// assign photo to cropper input
$master_img = elgg_view('output/img', array(
    'src' => $vars['entity']->getIconUrl('master'),
    'alt' => elgg_echo('avatar'),
    'class' => 'mrl',
    'id' => 'image',
));
$vars['image_to_crop'] = $master_img;

// optionally assign custom aspectratio to overide the aspectratio in settings
// set blank for free ratio or enter number e.g. 1 for 1/1
// if put comment the following line, the aspectratio value from settings will be used
$vars['aspectratio'] = 1;

echo elgg_view_input('cropper', $vars);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3433d ago

PHP version history (2 changes)2.1.2PHP &gt;=5.3.3

2.1.3PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b3b4c3ed45bff26900a422f0271d660579bb6a309428222fabeedc2329b7979?d=identicon)[nlybe](/maintainers/nlybe)

---

Top Contributors

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

---

Tags

pluginelggcropper

### Embed Badge

![Health badge](/badges/nlybe-cropper/health.svg)

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

PHPackages © 2026

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