PHPackages                             muhammetsafak/image-manipulation - 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. muhammetsafak/image-manipulation

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

muhammetsafak/image-manipulation
================================

PHP Image Manipulation Class

0.3(4y ago)08MITPHPPHP &gt;=7.4

Since Apr 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/muhammetsafak/ImageManipulation)[ Packagist](https://packagist.org/packages/muhammetsafak/image-manipulation)[ RSS](/packages/muhammetsafak-image-manipulation/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ImageManipulation
=================

[](#imagemanipulation)

PHP Image Manipulation Class

[![Latest Stable Version](https://camo.githubusercontent.com/48882d1ec44e21a19bb8b5571f53f0c6078c5f75b1bef84a726f3e187dda4466/687474703a2f2f706f7365722e707567782e6f72672f6d7568616d6d6574736166616b2f696d6167652d6d616e6970756c6174696f6e2f76)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![Total Downloads](https://camo.githubusercontent.com/4681e69e1265fb241006d6d5b6c930cd6bd7fbfd917bee27e22cf81a24581bfc/687474703a2f2f706f7365722e707567782e6f72672f6d7568616d6d6574736166616b2f696d6167652d6d616e6970756c6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![License](https://camo.githubusercontent.com/2b268c460f968c95058ebc62b349c9706e00c1364db539eb890f3e5f4c1b0cb1/687474703a2f2f706f7365722e707567782e6f72672f6d7568616d6d6574736166616b2f696d6167652d6d616e6970756c6174696f6e2f6c6963656e7365)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![PHP Version Require](https://camo.githubusercontent.com/581c4dd18663f05235bfd12d92213aea7fd0df1a98eff8a180824fa0b341107a/687474703a2f2f706f7365722e707567782e6f72672f6d7568616d6d6574736166616b2f696d6167652d6d616e6970756c6174696f6e2f726571756972652f706870)](https://packagist.org/packages/muhammetsafak/image-manipulation)

Some Features
-------------

[](#some-features)

- Resize proportionally or disproportionately.
- Crop certain part of the image.
- Rotate or flip.
- Write text on the picture.
- Watermark.
- Apply filters to images.
-

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

[](#requirements)

- PHP 7.4 and above
- [PHP GD Extension](https://www.php.net/manual/en/book.image.php)

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

[](#installation)

```
composer require muhammetsafak/image-manipulation

```

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";

$image = new \ImageManipulation\Image();

$image->setImage(__DIR__ . '/image.jpg');
$image->resize(300, 300);
// ... other operations
$image->save(__DIR__ . '/min_image.jpg');
$image->clean();
```

Licence
-------

[](#licence)

This library is written by [Muhammet ŞAFAK](http://www.muhammetsafak.com.tr) and distributed under the [MIT License](./LICENSE).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

1533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b6b34f3ac8938d8ee52ba3bd260680855dc5715c7b2929d9380de30d15a67dd?d=identicon)[muhammetsafak](/maintainers/muhammetsafak)

---

Top Contributors

[![muhammetsafak](https://avatars.githubusercontent.com/u/104234499?v=4)](https://github.com/muhammetsafak "muhammetsafak (2 commits)")

### Embed Badge

![Health badge](/badges/muhammetsafak-image-manipulation/health.svg)

```
[![Health](https://phpackages.com/badges/muhammetsafak-image-manipulation/health.svg)](https://phpackages.com/packages/muhammetsafak-image-manipulation)
```

###  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)

PHPackages © 2026

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