PHPackages                             gblix/gfx-php - 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. gblix/gfx-php

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

gblix/gfx-php
=============

The pure PHP graphics library

1.0.0(2mo ago)02301LGPL-2.1-or-laterPHPPHP ^8.2

Since Apr 28Pushed 2mo agoCompare

[ Source](https://github.com/GBLIX/gfx-php)[ Packagist](https://packagist.org/packages/gblix/gfx-php)[ Docs](https://github.com/GBLIX/gfx-php)[ RSS](/packages/gblix-gfx-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (1)

gblix/gfx-php — The pure PHP graphics library
=============================================

[](#gblixgfx-php--the-pure-php-graphics-library)

> **This is the GBLIX fork of [mike42/gfx-php](https://github.com/mike42/gfx-php).**The upstream repository is no longer actively maintained. This fork targets PHP 8.2+ and is available as `gblix/gfx-php` on Packagist.

This library implements input, output and processing of raster images in pure PHP, so that image processing extensions (Gd, Imagick) are not required.

This allows developers to eliminate some portability issues from their applications.

### Features

[](#features)

- Format support includes PNG, GIF, BMP and the Netpbm formats.
- Support for scaling, cropping, format conversion and colorspace transformations.
- Pure PHP: This library does not require Gd, ImageMagick or GraphicsMagick extensions.

v1.0.0 changelog
----------------

[](#v100-changelog)

- **Requires PHP 8.2+** (previously PHP 7.0+)
- Full property type declarations across all classes
- Full method return type declarations
- Fixed implicit nullable parameter deprecations (PHP 8.1)
- Fixed dynamic property deprecations (PHP 8.2)
- Fixed `PngHeader::getCompresssion()` reading an undeclared property (`$this->compresssion` → `$this->compression`)
- Replaced deprecated string pseudo-callables with first-class callable syntax
- PHPUnit upgraded to `^11`
- Removed `composer.lock` (library policy)
- Docker support added

Quick start
-----------

[](#quick-start)

### Requirements

[](#requirements)

- PHP 8.2 or newer
- `zlib` extension, for reading PNG files

### Installation

[](#installation)

Install `gblix/gfx-php` with Composer:

```
composer require gblix/gfx-php
```

### Basic usage

[](#basic-usage)

```
