PHPackages                             sagittariusx/beluga.drawing - 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. sagittariusx/beluga.drawing

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

sagittariusx/beluga.drawing
===========================

Some helpful image drawing tools.

0.1.0(9y ago)0191LGPLv3PHPPHP &gt;=7.0

Since Aug 20Pushed 9y agoCompare

[ Source](https://github.com/SagittariusX/Beluga.Drawing)[ Packagist](https://packagist.org/packages/sagittariusx/beluga.drawing)[ RSS](/packages/sagittariusx-belugadrawing/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

Beluga.Drawing
==============

[](#belugadrawing)

Some helpful image and drawing tools.

```
composer require sagittariusx/beluga.drawing
```

or include it inside you're composer.json

```
{
   "require": {
      "php": ">=7.0",
      "sagittariusx/beluga.drawing": "^0.1.0"
   }
}
```

The library declares the main classes inside the `Beluga\Drawing` namespace:

- `Beluga\Drawing\Size`: Declares the 2 dimensional size of an object (width + height) and some helpful methods
- `Beluga\Drawing\Point`: Declares the 2 dimensional location of an object (x + y) and some helpful methods.
- `Beluga\Drawing\Rectangle`: Declares the 2 dimensional size and location of an object. It is an combination of the 2 classes `Size` and `Point`.
- `Beluga\Drawing\Gravity`: Interface that declares constants for define the 2 dimensional gravity of an object. The gravity means values that define the align of an object inside an other. (e.G. `Gravity::TOP_LEFT`)
- `Beluga\Drawing\ContentAlign`: An other way to define the content align of an object inside an other
- `Beluga\Drawing\ColorTool`: A static helper class for color handling.
- `Beluga\Drawing\Color`This class define and handle all information of a color. (R, G, B, Opacity/Alpha, HEX-Format, Color name).
- `Beluga\Drawing\ColorGd`extends from Color class and is more GD specific.

The sub namespace `Beluga\Drawing\Image` declares the following:

- `Beluga\Drawing\Image\IImage`: This interfaces defines all features, required by a valid image implementation.
- `Beluga\Drawing\Image\AbstractImage`: This abstract class implements the main image functionality (not much) usable by all `IImage` implementations.
- `Beluga\Drawing\Image\GdImage`: This is currently the only usable `IImage` implementation. It works completely with PHPs basic GD graphics library.
- `Beluga\Drawing\Image\ImageSizeReducer`: A tool for resizing an `IImage` implementation, that can store and restore the current size reducing settings from `XML` (writing=`XMLWriter` and reading=`SimpleXMLElement`), `Array` and `JSON` string
- `Beluga\Drawing\Image\ImageSizeReducerType`: Declares all usable image size reducer types. (e.g.: `ImageSizeReducerType::LONG_SIDE`)
- `Beluga\Drawing\Image\ImageSizeReducerCollection`: Defines a collection of `Beluga\Drawing\Image\ImageSizeReducer` items.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

3602d ago

### Community

Maintainers

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

---

Top Contributors

[![UniKado](https://avatars.githubusercontent.com/u/6945587?v=4)](https://github.com/UniKado "UniKado (2 commits)")[![SagittariusX](https://avatars.githubusercontent.com/u/20841191?v=4)](https://github.com/SagittariusX "SagittariusX (1 commits)")

### Embed Badge

![Health badge](/badges/sagittariusx-belugadrawing/health.svg)

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

###  Alternatives

[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

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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