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

ActiveElgg-plugin[Image &amp; Media](/categories/media)

hypejunction/cropper
====================

Cropper form input for Elgg

7.0.2(1mo ago)09711GPL-2.0-or-laterPHPPHP &gt;=8.3CI failing

Since Dec 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/hypeJunction/Elgg-cropper)[ Packagist](https://packagist.org/packages/hypejunction/cropper)[ Docs](https://github.com/hypeJunction/Elgg-cropper)[ RSS](/packages/hypejunction-cropper/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (4)Dependencies (9)Versions (19)Used By (1)

Cropper for Elgg
================

[](#cropper-for-elgg)

[![Elgg 7.x](https://camo.githubusercontent.com/959475d1d91761b2e3ed85398ae1ebe9536a48c724e92bef53e7e2027c3d3627/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/959475d1d91761b2e3ed85398ae1ebe9536a48c724e92bef53e7e2027c3d3627/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Responsive image cropping input for Elgg

[![file input](https://camo.githubusercontent.com/ea137640d2109f67e0aea43604ecfafe3e46af665baf6c61804208dc4ce88b1b/68747470733a2f2f7261772e6769746875622e636f6d2f687970654a756e6374696f6e2f456c67672d63726f707065722f6d61737465722f73637265656e73686f74732f66696c655f696e7075742e706e67 "File Input with a Cropper")](https://camo.githubusercontent.com/ea137640d2109f67e0aea43604ecfafe3e46af665baf6c61804208dc4ce88b1b/68747470733a2f2f7261772e6769746875622e636f6d2f687970654a756e6374696f6e2f456c67672d63726f707065722f6d61737465722f73637265656e73686f74732f66696c655f696e7075742e706e67)

Usage
-----

[](#usage)

### Add cropper as a form input

[](#add-cropper-as-a-form-input)

```
echo elgg_view('input/cropper', array(
	'src' => 'http://example.com/uri/image.jpg',
	'ratio' => 16/9,
	'name' => 'crop_coords',
));
```

### Add cropper to a file input (basic usage)

[](#add-cropper-to-a-file-input-basic-usage)

```
// in your form
echo elgg_view('input/file', array(
    'name' => 'avatar',
    'use_cropper' => true,
));

// in your action
$coords = get_input('crop_coords');
```

### Add cropper to a file input (advanced usage)

[](#add-cropper-to-a-file-input-advanced-usage)

```
// in your form
echo elgg_view('input/file', array(
	'name' => 'cover',
	'use_cropper' => array(
		'name' => 'cover_crop_coords',
		'ratio' => 16/9,
		'src' => '/uri/image.jpg', // previously uploaded file
		'x1' => 100,
		'y1' => 100,
		'x2' => 260,
		'y2' => 190,
	),
));

// in your action
$coords = get_input('cover_crop_coords');
```

### Notes

[](#notes)

1. In your action, be sure to use the same image source for cropping. If you passed master image source to the file input, you will need to implement the logic for both new file upload and master image, as cropping coordinates may change even without new file upload.

Compatibility
-------------

[](#compatibility)

Plugin versionElgg version7.0.07.x6.0.06.x5.0.05.x4.0.04.x3.0.03.x

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

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

Recently: every ~8 days

Total

12

Last Release

59d ago

Major Versions

1.1.0 → 7.0.02026-05-10

3.0.0 → 4.0.02026-05-13

4.0.0 → 5.0.02026-05-13

5.0.0 → 6.0.02026-05-26

6.0.0 → 7.0.12026-06-10

PHP version history (5 changes)1.0.0PHP &gt;=5.5

7.0.0PHP &gt;=8.3

3.0.0PHP &gt;=7.4

5.0.0PHP &gt;=8.2

6.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (52 commits)")

---

Tags

elggelgg-pluginphppluginimageelggcropcropper

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[demi/cropper

Yii2 wrapper for Image Cropper javascript library

1330.8k1](/packages/demi-cropper)

PHPackages © 2026

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