library chameleon
PHP image manipulation library built around GD
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
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
, (*3)
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