PHPackages                             zoibana/images - 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. zoibana/images

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

zoibana/images
==============

Tiny image manipulation library

033PHP

Since Jan 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zoibana/images)[ Packagist](https://packagist.org/packages/zoibana/images)[ RSS](/packages/zoibana-images/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Zoibana\\images
===============

[](#zoibanaimages)

It's just a personal image helper (using GD library). Pull Requests and Issues are welcome!

Create image object
-------------------

[](#create-image-object)

```
/** Create from file */
$image = ImageResource::createFromFile('path/to/image.png');

/* Or create new */
$image = ImageResource::create($width, $height);
```

Get properties of image
-----------------------

[](#get-properties-of-image)

```
/* Get dimmensions */
[$width, $height] = $image->getSizes();

/* Get image type using default PHP IMAGETYPE_* constants */
$imagetype = $image->getImageType();

/* Get resource of image */
$resource = $image->getResource();
```

Manupulate image
----------------

[](#manupulate-image)

```
/* Change image type */
$newImage = $image->setImageType(IMAGETYPE_WEBP);

/** Crop image */
$image->resize($width, $height, Resize::ACTION_CROP);

/** Scale image */
$image->scale($width, $height, Resize::ACTION_SCALE);

/** Rotate JPEG to correct orientation using EXIF data */
$image->fixOrientation();
```

Display and save images
-----------------------

[](#display-and-save-images)

```
/* Display image. It sends correct http-headers and send content of image to browser */
$image->display();

/* Save to file */
$image->save('path/to/dest.png');

/* Save to file and set quality 0-100 (compression rate 1-9 for PNG) */
$image->save('path/to/dest.png', 9);

/* Save in format */
$image->saveAs(IMAGETYPE_WEBP, 'path/to/dest.webp');

/* Send HTTP Content-Type header based on current image type of $image object */
$image->header();
```

Image Server
============

[](#image-server)

```
$server = new ImageServer();

/* Enable cache */
$server->enableCache($cacheDir);

/* Create image from file */
$server->fromFile($imgFile);

/** Crop/Resize image */
if ($width && $height) {
    $server->resize($width, $height, Resize::ACTION_CROP);
}

/** Display image in requested format */
if ($imagetype) {
  $server->saveAs($imagetype, null, $quality);
  exit;
}

$headers = getallheaders();
$supportsWebp = strpos($headers['Accept'], 'image/webp') !== false;

/** If client supports WEBP, display in WEBP format */
if ($supportsWebp) {
  $server->saveAs(IMAGETYPE_WEBP, null, $quality);
  exit;
}

/** By default display image in source format */
$server->save();
exit;
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3febe55f5a3511e02c8fd8d52bc56fa16f6ba3822acc50629646f31d91534d17?d=identicon)[zoibana](/maintainers/zoibana)

---

Top Contributors

[![zoibana](https://avatars.githubusercontent.com/u/5782615?v=4)](https://github.com/zoibana "zoibana (15 commits)")

### Embed Badge

![Health badge](/badges/zoibana-images/health.svg)

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

###  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)[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)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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