PHP Classes

Eyefi Image Modifier: Apply a series of transformations to an image

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 1,300 All time: 2,969 This week: 310Up
Version License Categories
imgfilter 1.0.0GNU Lesser Genera...Graphics
Description 

Author

This class can be used to apply a series of transformations to graphical images.

The developer can define a chain of transformations, optionally giving it a name, and then apply an image to this chain, which results in a new image. If the image is applied to the chain a second time, a cached image will be used.

Currently, the following filters are supported:

- Resize
- Add a border
- Apply color mask
- Round corners
- Cropping
- Color blending
- Render text
- Define a margin
- Overlay for watermarking
- Turn into grayscale image

Picture of Arjan Scherpenisse
Name: Arjan Scherpenisse <contact>
Classes: 1 package by
Country: The Netherlands The Netherlands
Age: 123
All time rank: 201355 in The Netherlands The Netherlands
Week rank: 312 Up10 in The Netherlands The Netherlands Up

Details

README for Eyefi ImageModifier for version 0.1 ------------------------------------------------------------------- The Eyefi ImageModifier library is a high-level programming interface for describing and caching a series of image transformations which are applied to source images, typically for display on web pages. The work process is as follows: you define a 'chain' of transformations, optionally giving it a name, and then apply an image to this chain, which results in a new image. If the image is applied to the chain a second time, a cached image will be used. Currently, the following filters are defined: * resize * border * apply color mask * round corners * cropping (to ratio, to dimension, square) * color blending * text (ttf / t1) * margin * overlay (for watermarking) * grayscale The Eyefi Open Source website, available at http://opensource.eyefi.nl/eyefi-imgfilter/, documents all features in detail. ------------------------------------------------------------------- REQUIREMENTS This product is tested with PHP versions 4.4 and below. Furthermore, the GD imaging functions must be available. From version 4.3, GD is included in the standard PHP distribution. For full type1 support, GD must be compiled with t1lib support. You can check by running phpinfo() in a script on your website and checking the output. ------------------------------------------------------------------- INSTALLATION Make sure that your PHP installation meets the above requirements. * Copy imgfilter.inc.php anywhere on your server, preferably in your php's include_path. * Make a directory imgcache under your document root and make it writable for user running the web server process. This should do it, you should now be able to run any of the examples mentioned on the website. ------------------------------------------------------------------- SMARTY INSTALLATION Smarty needs the function.imagemodifier.php in its plugin path. Move the file to folder lib/plugins in your smarty installation. Furthermore, if you plan to use relative filenames for the {imagemodifier img=...} file, you need to define DATA_PATH as the root for the referenced files: define("DATA_PATH", "/tmp/data/upload/"); Please also define LIBRARY_PATH as the path to imgfilter.inc.php, because the smarty function uses it: example ( for /your/path/to/imgfilter.inc.php) define("LIBRARY_PATH", "/your/path/to/");

Screenshots  
  • imgfilter-screenshot.png
  Files folder image Files  
File Role Description
Plain text file function.imagemodifier.php Appl. Smarty function for the ImageModifier
Plain text file imgfilter.inc.php Class Eyefi ImageModifier release 0.1
Plain text file README.txt Doc. Readme

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,300
This week:0
All time:2,969
This week:310Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:494
 
Excellent
14 years ago (kishore kumar)
70%StarStarStarStar