PHP Classes
elePHPant
Icontem

Image Masking: Apply masks to an image and output the cut image

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2004-01-18 (12 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 1,975 All time: 1,930 This week: 1,090Up
Version License Categories
image-mask 1.0.0Free for non-comm...Graphics
Description Author

This class is meant to apply a mask to a given image, much like you could do in PhotoShop, Gimp, or any other such image manipulation program.

If the mask is smaller than the image then the mask can be placed in various positions (top left, left, top right, left, centre, right, bottom left, bottom, bottom right) or the mask can be resized to the dimensions of the image.

This class has to copy an image one pixel at a time. Please bare in mind that this process may take quite some time on large images, so it is probably best that it is used on thumbnails and smaller images.

The processing is done in true color. Therefore the resulting masked is generated in either JPEG or PNG.

Picture of Andrew Collington
  Performance   Level  
Name: Andrew Collington <contact>
Classes: 13 packages by
Country: United Kingdom United Kingdom

  Files folder image Files  
File Role Description
Plain text file class.imagemask.php Class The main class file
Accessible without login Plain text file test.imagemask.php Example A test file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,975
This week:0
All time:1,930
This week:1,090Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:298