Skip to content

Latest commit

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

alt text

Build StatusScrutinizer Code QualityLatest Stable VersionTotal DownloadsLicense

O2System Image

O2System Image is a PHP image handling and manipulation library for O2System Framework which provides an easier and expressive way to manipulate an image. It allows different PHP Image Processor and Generator to be used.

Supported PHP Image Processors and Generator Drivers

ProcessorsSupportTested
GD2YesYeshttp://php.net/image
GMagickYesYeshttp://php.net/gmagick
ImageMagickYesYeshttp://php.net/imagemagick

Composer Installation

The best way to install O2System Image is to use Composer

composer require o2system/image

Packagist: https://packagist.org/packages/o2system/image

Usage

useO2System\Image;
// Manipulate Image$manipulation = newImage\Manipulation();
$manipulation->setImageFile( 'path/to/images/kawah-putih.jpg' );
$manipulation->scaleImage( 15 );
// Watermark Image$manipulation->watermarkImage( ( newText() )
->setPosition( 'MIDDLE_BOTTOM' )
->setPadding( 10 )
->signature( 'Braunberrie Timeless Portraiture' )
->copyright( 'Copyright © ' . date( 'Y' ) . ' Poniman Mulijadi' . PHP_EOL . 'Braunberrie Timeless Portraiture' )
);
// Send to browser$manipulation->displayImage();
// Save Image$manipulation->saveImage( 'path/to/save/images/kawah-putih.jpg' );

Documentation is available on this repository wiki or visit this repository github page.

Ideas and Suggestions

Please kindly mail us at contact@o2system.id

Bugs and Issues

Please kindly submit your issues at Github so we can track all the issues along development and send a pull request to this repository.

System Requirements

Fonts Credits

  • Jellyka Saint Andrew's Queen by Jellyka Neveran used as default signature font.
  • Express Way Regular - Truetype Font by Typodermic Fonts used as default copyright font.

Photographs Example Credits

  • Kawah Putih by Poniman Mulijadi - Braunberrie Timeless Portraiture

All photographs above is used as examples in the script O2System Framework.

About

PHP Image Handler and Manipulation Class Library

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages