PHPackages                             barretzhi/grafika - 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. barretzhi/grafika

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

barretzhi/grafika
=================

An image manipulation library for PHP.

2.0.8(9y ago)067MITPHPPHP &gt;=5.3

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/barretzhi/grafika)[ Packagist](https://packagist.org/packages/barretzhi/grafika)[ Docs](http://kosinix.github.io/grafika)[ RSS](/packages/barretzhi-grafika/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (20)Used By (0)

Grafika
=======

[](#grafika)

[![Build Status](https://camo.githubusercontent.com/ea4c7eca7c6e8db6c4fec8fbfb82ead0f6741f841e1b171982c4661c3fbba5fd/68747470733a2f2f7472617669732d63692e6f72672f6b6f73696e69782f67726166696b612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kosinix/grafika)

An image processing library for PHP

Unique Features
---------------

[](#unique-features)

These are the features that make Grafika unique from other libs:

- [Smart Crop](https://kosinix.github.io/grafika/smart-crop.html) - Grafika can guess the crop position based on the image content where the most important regions are preserved.
- [Animated GIF Support](https://kosinix.github.io/grafika/animated-gif.html) - It can resize animated GIFs on both GD and Imagick. On GD, Grafika uses its own GIF parser to do this.
- [5 Resize Modes](https://kosinix.github.io/grafika/resizing.html) - Resize is a first class citizen in Grafika. Call them directly using resizeFit, resizeFill, resizeExact, resizeExactWidth, and resizeExactHeight or use the generic resize api.
- [Image Compare](https://kosinix.github.io/grafika/compare-images.html) - Find how similar two images are using perceptual hashes or check if they are exactly equal.
- [Advance Filters](https://kosinix.github.io/grafika/filters/Sobel.html) - Sobel and Floyd-Steinberg Dithering. More will be added in future releases.
- [Image Blending](https://kosinix.github.io/grafika/editor/blend.html) - Blend 2 images using the following modes: normal, multiply, overlay and screen.
- **Normalized API** - No need to worry about the differences between GD and Imagick API, Grafika normalizes these operations for you.

See documentation for a full list of features.

Documentation
-------------

[](#documentation)

API:
----

[](#api)

Packagist
---------

[](#packagist)

License
-------

[](#license)

- MIT License
- GPL 2

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~19 days

Recently: every ~33 days

Total

18

Last Release

3297d ago

Major Versions

0.1.0 → 1.0.02016-07-24

1.4.1 → 2.0.02016-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/d639f78ad2d415056a340bfd755cacf4710856b32b3a5cc7370fd833c98e04a6?d=identicon)[barretzhi](/maintainers/barretzhi)

---

Top Contributors

[![kosinix](https://avatars.githubusercontent.com/u/1096465?v=4)](https://github.com/kosinix "kosinix (270 commits)")

---

Tags

grafika

### Embed Badge

![Health badge](/badges/barretzhi-grafika/health.svg)

```
[![Health](https://phpackages.com/badges/barretzhi-grafika/health.svg)](https://phpackages.com/packages/barretzhi-grafika)
```

###  Alternatives

[kosinix/grafika

An image manipulation library for PHP.

866314.9k7](/packages/kosinix-grafika)[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

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

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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