PHPackages                             edwin-luijten/intervention-image-focus - 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. edwin-luijten/intervention-image-focus

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

edwin-luijten/intervention-image-focus
======================================

Intervention Image filter to crop images with a focal point

1.0.0(4y ago)445MITPHPPHP ^7.4 | ^8.1

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Edwin-Luijten/intervention-image-focus)[ Packagist](https://packagist.org/packages/edwin-luijten/intervention-image-focus)[ RSS](/packages/edwin-luijten-intervention-image-focus/feed)WikiDiscussions main Synced 4w ago

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

Intervention Image Focus Filter
===============================

[](#intervention-image-focus-filter)

[![Packagist Downloads](https://camo.githubusercontent.com/f9624a41b8e17a2b168bf826277ce41cee4b35f8f603f546c20fd0e39656e89f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656477696e2d6c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f9624a41b8e17a2b168bf826277ce41cee4b35f8f603f546c20fd0e39656e89f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656477696e2d6c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375733f7374796c653d666c61742d737175617265)[![CircleCI](https://camo.githubusercontent.com/70899fa62f30b4b3dc77477939adcaea5ade58a78649b7e01fa91493945aa1dd/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f456477696e2d4c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375732f6d61696e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/70899fa62f30b4b3dc77477939adcaea5ade58a78649b7e01fa91493945aa1dd/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f456477696e2d4c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375732f6d61696e3f7374796c653d666c61742d737175617265)[![Code Climate maintainability](https://camo.githubusercontent.com/d9c0b4bdae2a1e94aef26beadd1faed47975aaf0c67523f8f3eae751efef7136/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f456477696e2d4c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d9c0b4bdae2a1e94aef26beadd1faed47975aaf0c67523f8f3eae751efef7136/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f456477696e2d4c75696a74656e2f696e74657276656e74696f6e2d696d6167652d666f6375733f7374796c653d666c61742d737175617265)

[![Example](example.png)](example.png)

Cropping images based on a focal point.

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

[](#requirements)

- PHP ^7.4 or ^8.1
- [Intervention Image](http://image.intervention.io/)

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

[](#installation)

`composer require edwin-luijten/intervention-image-focus`

Usage
-----

[](#usage)

```
use Intervention\Image\ImageManager;
use EdwinLuijten\InterventionImageFocus\FocusFilter;

$manager = new ImageManager();
$image = $manager->make('foo.png');

// x-y percentage
$image->filter(new FocusFilter(500, 500, '75-50')));

$image->encode('png');
$image->save('test.png');
```

---

Image attribution:
Title: Sunset city skyline
Author: [Kevin Young @ Unsplash](https://unsplash.com/photos/-icmOdYWXuQ)
Source:

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1602d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e6993df069a061031d80e7fbbf3d4e51b7d84563b08224b10cad084c1308e8a?d=identicon)[Edwin-Luijten](/maintainers/Edwin-Luijten)

---

Top Contributors

[![Edwin-Luijten](https://avatars.githubusercontent.com/u/1339637?v=4)](https://github.com/Edwin-Luijten "Edwin-Luijten (33 commits)")

---

Tags

imagecroppointinterventionfocal pointfocal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/edwin-luijten-intervention-image-focus/health.svg)

```
[![Health](https://phpackages.com/badges/edwin-luijten-intervention-image-focus/health.svg)](https://phpackages.com/packages/edwin-luijten-intervention-image-focus)
```

###  Alternatives

[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M100](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

103548.4k1](/packages/ctessier-nova-advanced-image-field)[jonom/focuspoint

Smarter automatic image cropping for Silverstripe

108645.6k49](/packages/jonom-focuspoint)[osiemsiedem/intervention-image-vips-driver

VIPS driver for Intervention Image.

2762.3k1](/packages/osiemsiedem-intervention-image-vips-driver)

PHPackages © 2026

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