2017 © Pedro Peláez
 

library chameleon

PHP image manipulation library built around GD

image

webd97/chameleon

PHP image manipulation library built around GD

  • Sunday, January 14, 2018
  • by webD97
  • Repository
  • 2 Watchers
  • 3 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 11 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Chameleon Build Status Code Climate Test Coverage

Chameleon is a PHP image manipulation library built around GD., (*1)

Please note that it is still in development!, (*2)

Code example

 setBackgroundPattern(new BackgroundColor($imageBackground));

    $rectanglePosition = new Vector2(50, 50);
    $rectangleBackground = new HSLColor(45, 1, 0.5);
    $rectangleBorder = new HSLColor(90, 1, 0.8);

    $rectangle = new Rectangle($rectanglePosition, 380, 260);
    $rectangle -> setBackgroundPattern(new BackgroundColor($rectangleBackground))
               -> setBorderPattern(new BackgroundColor($rectangleBorder))
               -> setBorderThickness(5);

    $image -> draw($rectangle);

    header("Content-type: image/png");
    $image -> outputFile(IMG_PNG);
?>

Output

PHP Output, (*3)

The Versions

14/01 2018

dev-master

9999999-dev

PHP image manipulation library built around GD

  Sources   Download

MIT

The Requires

 

The Development Requires

image manipulation gd png gd2 creation