PHPackages                             sledgehammer/graphics - 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. sledgehammer/graphics

ActiveLibrary

sledgehammer/graphics
=====================

Sledgehammer Graphics module: Image and Video processing

18.04.0(8y ago)11.1k1MITPHP

Since Oct 12Pushed 8y ago5 watchersCompare

[ Source](https://github.com/sledgehammer/graphics)[ Packagist](https://packagist.org/packages/sledgehammer/graphics)[ RSS](/packages/sledgehammer-graphics/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Sledgehammer Graphics module
============================

[](#sledgehammer-graphics-module)

[![Build Status](https://camo.githubusercontent.com/c6d10b1421a19836150f5bffcdf832dd3f5b869354fc43a71b3091a7ba64aa84/68747470733a2f2f7472617669732d63692e6f72672f736c6564676568616d6d65722f67726170686963732e737667)](https://travis-ci.org/sledgehammer/graphics)

Features
--------

[](#features)

- Compose images via layers.
- Use CSS notation for colors "white", "#ff8800" or "rgba(255,130, 0, 0.5)"
- Use CSS notation for text "bold 18px Arial, sans-serif"
- Autodetect filetype and support for bmp.

Datastructure
-------------

[](#datastructure)

Modelled after Adobe Photoshop's layers &amp; folders.

- Composition
    - TextGraphics
    - Composition
        - Canvas
        - Image
    - Image

Creating an image object
------------------------

[](#creating-an-image-object)

Example usage
-------------

[](#example-usage)

```
     $image = new Image('/path/to/my-image.jpg');
     $resized = $image->resized(120, 100);
     $resized->saveAs('/path/to/my-image-as-120x100.png');
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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 ~224 days

Recently: every ~425 days

Total

10

Last Release

2943d ago

Major Versions

12.10.2 → 13.02.02013-02-14

13.08.0 → 14.01.02014-01-26

14.01.0 → 16.x-dev2016-04-06

16.05.0 → 18.04.02018-04-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/207248?v=4)[Bob Fanger](/maintainers/bfanger)[@bfanger](https://github.com/bfanger)

---

Top Contributors

[![bfanger](https://avatars.githubusercontent.com/u/207248?v=4)](https://github.com/bfanger "bfanger (50 commits)")

### Embed Badge

![Health badge](/badges/sledgehammer-graphics/health.svg)

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

PHPackages © 2026

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