- Project Name: WiseLoop PHP Graphic Works
- Since: 2011-03-15
- Version: 1.2.2
- Release date: 2011-03-29
- Author: WiseLoop
- Web: http://www.wiseloop.com
- Online Documentation: http://www.wiseloop.com/products/phpgraphicworks/documentation/html/index.html
Introduction
WiseLoop PHP Graphic Works is a set of PHP classes designed for image manipulation on the server side.
This package allows complex image processing in a flexible manner, by using only a few lines of code. Thus, the image processing commands can be specified in an Fx Chain which is then parsed by the effects processor to be applied over the source image. The Fx Chain can be loaded from a string, a string in JSON format, or also from a local or remote file (it may be even a URL ).
Cache-type function, prevents useless processing by storing the resulting images for a given set of effects, improving the processed image output speed.
By using live-type characteristics of this package the Fx Chains can be applied to images on the fly, thus, the resulting image can be displayed directly in a html img tag.
There is also a batch processor that enables applying an Fx Chain over an entire image directory.
Service information feature enables the development of JavaScript applications allowing them to be aware of the effects available, and the parameters required by the effects. (see demo application Image Editor)
The choosen programming model allows the extension library of effects and permits using this package in a flexible and intuitive manner.
In conclusion, this package is not just a way to apply effects on images, it is a powerful API that due to its dynamic characteristics can significantly improve the image of web sites and helps developing JavaScript applications that do image processing on the server (image editors, galleries, etc.).
Main Features
- complete collection of image manipulators: rotate, crop, resize, scale, stretch, flip;
- large collection of image filters: blur, sepia, grayscale, negative, contrast, brightness, gamma, saturation, hue, smooth, sharpen, channel, colorize;
- great special effects: puzzle, noise, pixelate, reflection, emboss, edge, sketch, round;
- drawing primitives: text or image mixing, so image watermarks can be applied;
- applying effects on selection or entire image;
- applying grayscale masks (vectorial-internally generated or loaded form external uri-s)
- applying multiple effects at once using chained effects;
- image folder batch processor;
- effects service info available (JSON format) for easy integration with JavaScript applications;
- live rendering so you can apply effects on the fly directly from the html tag;
- lightweight due to the Autoloader feature;
- smart caching for fast processing;
- exhaustive documentation;
- effects library easy to enlarge;
- Image Editor
- Image Gallery (included in package)
- Nice Social Media Links (included in package)
- Code Samples (included in package)
- Apache Web Server 2.0.0 or above
- PHP 5 .0.0 or above with GD2 extension enabled
- Step 1: make a folder named /wlGraphicWorks on your Web server;
- Step 2: copy entire /bin and /live folders to the new created /wlGraphicWorks folder;
- Step 3: set the cache path from /bin/wlGwConfig.php file (make sure that it exists and is writable);
- Step 4: include /bin/wlGw.php in your application.
Live Demonstrations
Very Short Features Preview
Original Picture
Applying Fx Chains
Rounded Reflection |
Gamma w/ Reflection |
Sepia w/ Reflection |
Grayscale w/ Reflection |
Negative w/ Reflection |
Mask w/ Reflection |
Selection Capabilities |
Blending
Watermark |
Transparent Window |
Transparent Frame |
Frame |
Frame |
Applying Masks
Circle Vectorial Mask |
Rounded Corners Vectorial Mask |
Interlaced Vectorial Mask |
File Mask |
File Mask |
File Mask |
File Mask |
Applying Single Fx
Blur |
Increased Brightness |
Extract Red Channel |
Tint (Colorize) |
Increased Contrast |
Gamma Correction |
Grayscale |
Sepia |
Negative |
Text Watermark |
Pixelate |
Puzzle |
Reflection |