Skip to content

kosinix/grafikon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafikon

Build Status

A smaller subset of Grafika that works in PHP 5.2

Features

  • Works in PHP 5.2 (yup WordPress)
  • Common image ops: resize, crop, smart-crop, blend, fill, text, opacity
  • Image compare: compare, equal
  • Special: smart-crop
  • Transforms: flip, rotate
  • Supported images: JPG, PNG, GIF, Animated GIF (Works even if you only have GD installed)

Usage

require_once 'src/autoloader.php';

$editor = Grafikon::createEditor(); // Will try and create Imagick editor or fallback to GD
$image = $editor->open('image.jpeg');
$editor->resize($image, 200, 100, 'fit');
$editor->save('out.png');

`

Packagist

https://packagist.org/packages/kosinix/grafikon

License

Grafikon is dual licensed:

  • MIT
  • GPL-2.0+

Liberation Sans is licensed under SIL Open Font License.

About

A small image processing lib for PHP >= 5.2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages