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

0122PHP

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 1mo ago

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

Maturity25

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://www.gravatar.com/avatar/d9844e7f478bdc09ee525174be8300d9a96f6c3939438bed900b671f0f6ce36b?d=identicon)[PYovchevski](/maintainers/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

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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