PHPackages                             rych/cropbuddy - 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. rych/cropbuddy

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

rych/cropbuddy
==============

Smart cropping images with PHP

323PHP

Since Apr 10Pushed 12y agoCompare

[ Source](https://github.com/rchouinard/cropbuddy)[ Packagist](https://packagist.org/packages/rych/cropbuddy)[ RSS](/packages/rych-cropbuddy/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CropBuddy
=========

[](#cropbuddy)

Another quick project written as part of a larger one. This library takes an Imagick object and crops the image using a given cropping strategy.

How does it work?
-----------------

[](#how-does-it-work)

CropBuddy modifies your Imagick objects in place. It can resize and/or crop images to given dimensions.

Included strategies are:

- CenterStrategy - the default, just ccrops from image center
- EntropyStrategy - crops to the most interesting part of an image (I make no promises as to how interesting the chosen bit really is)

Usage
-----

[](#usage)

```
