gfx-php

The pure PHP graphics library

LGPL-2.1 License

Downloads
628K
Stars
23
Committers
1
gfx-php - v0.6 Latest Release

Published by mike42 about 5 years ago

  • Adds support for reading BMP file format. Various versions, color depths and compression modes are supported, see docs/ for details.
gfx-php - v0.5

Published by mike42 over 5 years ago

  • Adds support for reading and writing WBMP (Wireless Application Protocol Bitmap) image files.
  • Adds support for reading GIF files that use a 'deferred clear code'. On previous versions, the Exception "LZW code table overflow" was thrown when this type of file was read.
gfx-php - v0.4.2

Published by mike42 over 5 years ago

This release restores compatibility with HHVM 3.21 and HHVM 3.27.

gfx-php - v0.4.1

Published by mike42 over 5 years ago

This change introduces some minor fixes:

GIF decoding:

  • Fixes the rejection of valid GIF images with block ordering which was not understood.

Indexed-color images:

  • Fixes the incorrect treatment of color '0' as transparent when no transparent color is set.

File loading:

  • Will now throw an exception rather than raising a warning.
gfx-php - v0.4

Published by mike42 over 5 years ago

This release adds support for using GIF files as input to gfx-php.

If the input file is an animation, then only the first image will be used. #17

gfx-php - v0.3.1

Published by mike42 over 6 years ago

This release incorporates some minor bug fixes:

  • BMP output was not correct. #30
  • PHP Warnings being raised while reading some valid and invalid PNG images before the image was correctly loaded or rejected. #32
gfx-php - v0.3

Published by mike42 over 6 years ago

This release contains two main changes:

  • Adds the ability to read PNG images.
    • The PNG reader is triggered when .png is used as the file extension for input.
    • Transparency is be mixed to a white background.
    • See #16 for known limitations.
  • Removes the documentation generator, which was generic enough to be spun off as its own project. See doxyphp2sphinx and this related blog post for usage.
gfx-php - v0.2.1

Published by mike42 over 6 years ago

  • Documentation changes only
gfx-php - v0.2

Published by mike42 over 6 years ago

This update adds API documentation to the project, and the new gfx-php name.

gfx-php - v0.1

Published by mike42 over 6 years ago

Initial implementation of the image-php library.

Output formats

  • PNG - 24 bit RGB is used.
  • GIF
  • BMP - 24 bit RGB is used.
  • Binary NetPBM formats: PPM, PBM, PGM.

Input formats

  • Binary NetPBM formats: PPM, PBM, PGM.

Image representations

  • RGB 24 bits per pixel.
  • Indexed / palette-based, 8 or 16 bits per pixel.
  • Monochrome, 8 or 16 bits per pixel
  • Black and white, 1 bit per pixel.

Processing

  • Format conversions
  • Color-space conversions (eg. to monochrome, black/white or 256 colors).
  • Image re-sampling (scaling)
Package Rankings
Top 4.55% on Packagist.org
Badges
Extracted from project README
Build Status Latest Stable Version Total Downloads License Coverage Status