Download the PHP package mike42/gfx-php without Composer
On this page you can find all versions of the php package mike42/gfx-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mike42/gfx-php
More information about mike42/gfx-php
Files in mike42/gfx-php
Package gfx-php
Short Description The pure PHP graphics library
License LGPL-2.1-or-later
Homepage https://github.com/mike42/gfx-php
Informations about the package gfx-php
gfx-php - The pure PHP graphics library
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
- Format support includes PNG, GIF, BMP and the Netpbm formats (See docs: File formats).
- Support for scaling, cropping, format conversion and colorspace transformations (See docs: Image operations).
- Pure PHP: This library does not require Gd, ImageMagick or GraphicsMagick extensions.
Quick start
Requirements
- PHP 7.0 or newer.
zlib
extension, for reading PNG files.
Installation
Install gfx-php
with composer:
Basic usage
The basic usage is like this:
Further reading
- Read of the documentation at gfx-php.readthedocs.io
- See the
examples/
sub-folder for snippets.
Contributing
This project is open to all kinds of contributions, including suggestions, documentation fixes, examples, formats and image processing algorithms.
Some ideas for improvement listed in the issue tracker. Code contributions must be releasable under the LGPLv3 or later.
Scope
As a small project, we can't do everything. In particular, gfx-php
is not likely to ever perform non-raster operations:
- vector image formats (PDF, SVG, EPS, etc).
- anything involving vector fonts
Acknowledgements
This repository uses test files from other projects:
Similar projects
- Imagine, which wraps available libraries.