PHPackages                             pyovchevski/php-image-magician - 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. pyovchevski/php-image-magician

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

pyovchevski/php-image-magician
==============================

PHP Image Magician

0163PHP

Since Jan 23Pushed 2y agoCompare

[ Source](https://github.com/plumtex-deps/php-image-magician)[ Packagist](https://packagist.org/packages/pyovchevski/php-image-magician)[ RSS](/packages/pyovchevski-php-image-magician/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

php-image-magician
==================

[](#php-image-magician)

Image manipulation at it's finest.

home page @

### Features

[](#features)

- Quick and easy resize - Resize to landscape, portrait, or auto
- Easy crop
- Add text
- Watermarking
- Shadows and reflections
- Transparency support
- Read EXIF metadata
- Borders, Rounded corners, Rotation
- Filters and effects
- All operations (eg. filter, effects) can be stacked
- Image sharpening
- Image type conversion
- BMP support
- PSD reader support (limited)

### Resize &amp; Crop Example

[](#resize--crop-example)

```
// Include PHP Image Magician library
require_once('php_image_magician.php');

// Open JPG image
$magicianObj = new imageLib('racecar.jpg');

// Resize to best fit then crop
$magicianObj -> resizeImage(100, 200, 'crop');

// Save resized image as a PNG
$magicianObj -> saveImage('racecar_small.png');

```

### Watermark Example

[](#watermark-example)

```
// Include PHP Image Magician library
require_once('php_image_magician.php');

// Open JPG image
$magicianObj = new imageLib('racecar.jpg');

// Add watermark to bottom right, 50px from the edges
$magicianObj -> addWatermark('monkey.png', 'br', 50);

// Save watermarked image as a PNG
$magicianObj -> saveImage('racecar_small.png');

```

Check out the [documentation](http://phpimagemagician.oberto.co.nz/docs.html) for more examples.

### Contributions

[](#contributions)

If you'd like to contribute features or bug fixes to the project, please be my guest.

If you found this code useful, or maybe it saved you a tonne of time, and would like to contribute in other ways, all donations go towards hosting and future developement.

**BTC:** 1BacitzfnJashc2DYKeiAQzr9tWH5en9uM
**ETH:** 0x13E9C47b3158583271a471Cb76C8ef6285c925Eb
**LTC:** LWcauH9vxcGt3mJGgBWfxCYXniLLSWESyu

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 65.4% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6672997?v=4)[Petko Yovchevski](/maintainers/PYovchevski)[@PYovchevski](https://github.com/PYovchevski)

---

Top Contributors

[![Oberto](https://avatars.githubusercontent.com/u/1291027?v=4)](https://github.com/Oberto "Oberto (17 commits)")[![PYovchevski](https://avatars.githubusercontent.com/u/6672997?v=4)](https://github.com/PYovchevski "PYovchevski (6 commits)")[![Spudley](https://avatars.githubusercontent.com/u/1370806?v=4)](https://github.com/Spudley "Spudley (2 commits)")[![aheiland](https://avatars.githubusercontent.com/u/19925809?v=4)](https://github.com/aheiland "aheiland (1 commits)")

### Embed Badge

![Health badge](/badges/pyovchevski-php-image-magician/health.svg)

```
[![Health](https://phpackages.com/badges/pyovchevski-php-image-magician/health.svg)](https://phpackages.com/packages/pyovchevski-php-image-magician)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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