PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (11 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 1,965 All time: 1,906 This week: 1,039Up
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
Age: 41
All time rank: 534 in United Kingdom United Kingdom
Week rank: 896 Down34 in United Kingdom United Kingdom Down

  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,965All time:1,906
 This week:0This week:1,039Up
 User Ratings  
 All time