PHP Classes

Image Slicer: Generate HTML to present images divided in pieces

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,167 All time: 1,806 This week: 291Up
Version License Categories
imageslicer 1.0.0FreewareHTML, Graphics


This class is meant to generate an HTML table with an image sliced in smaller pieces.

It can be used to make pages with large images load faster by loading many small pieces at the same time.

The class takes the limit width and height of each piece and outputs an HTML table with with image tags to load each image slice.

Innovation Award
PHP Programming Innovation award winner
August 2004

Prize: One downloadable copy of PHPEd
Pages that have very large images tend to take a lot of time to load. A common trick to speedup loading of pages with large images is to split the images in many pieces so the browser can load them separately at the same time.

This class make image splitting possible without the need to explicitly divide the images in different files.

It generates the necessary HTML for making the picture appear in the right place of the page and the class it self extracts each piece to be served according to parameters passed in the URL of the image slices.

Manuel Lemos
Picture of Huda M Elmatsani
Name: Huda M Elmatsani <contact>
Classes: 14 packages by
Country: Indonesia Indonesia
Age: ???
All time rank: 161 in Indonesia Indonesia
Week rank: 367 Down7 in Indonesia Indonesia Down
Innovation award
Innovation award
Nominee: 5x

Winner: 3x

  Files folder image Files  
File Role Description
Plain text file imageslice.php Class Main class
Accessible without login Plain text file sample1.php Example generate sliced image within a table
Accessible without login Plain text file slice.php Example image output
Plain text file slicer.php Class Needed class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,806
This week:291Up
User Ratings User Comments (1)
 All time
makasih ^^
13 years ago (Jack Peter)