PHP Classes

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 (14 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 1,982 All time: 1,948 This week: 574Up
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.

  Performance   Level  
Name: Andrew Collington <contact>
Classes: 13 packages by
Country: United Kingdom United Kingdom
Age: 43
All time rank: 554 in United Kingdom United Kingdom
Week rank: 545 Down17 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  
This week:0
All time:1,948
This week:574Up
 User Ratings  
 All time