Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-01-19 (8 years ago) | Not enough user ratings | Total: 499 | All time: 5,541 This week: 1,095 |
Version | Licenses | PHP version | Categories | |||
jpegslicer 1 | Freely Distributable | 4.0 | Graphics |
Description | Author | ||||||||
This class can be used to slice large images in several parts to make it display faster. |
|
<------********************************************************************************************************-------> thecoderin@aol.in <------********************************************************************************************************-------> FILE = JPEGSlicer.php TYPE = PHP CLASS AUTHOR = ANISH KARIM C, <thecoderin@aol.in> DATE = 20 Jan 2008 DESCRIPTION : JPEGSlicer is a JPEG image resizer-Slicer class written in pure php. It is used to resize and slice the entire image into 4 sub parts and this will be help to load the imge faster in the post upload section. HOW TO USE : JPEGSlicer(directory, temp_image,selection,resize) -->directory = directory name to be uploaded (string) -->temp_image = The temporary image file example: $_FILES['image']['tmp_name'] (string) -->selection = The selection for resize (dtring) ->if selection = 'height' the image is resized , ie. new image height will be resize value of the function parameter ->if selection = 'width' the image is resized , ie. new image width will be resize value of the function parameter ->if selection ='nill' NO IMAGE RESIZE PLEASE ASSIGN resize = 0 -->resize = value assigned to the fixed selection (integer) resize will be zero if the selection goes to zero THE IMAGES WILL BE IN THE object->filename ARRAY 3 type configuration $orginal_Img_object = new JPEGSlicer('slice', $image,'nill',0); //JPEG SLICE WITHOUT RESIZE $width_Img_object = new JPEGSlicer('slice', $image,'width',100); //JPEG SLICE WITH RESIZE ACCORDING TO WIDTH SIZE = 100px $height_Img_object = new JPEGSlicer('slice', $image,'height',100); //JPEG SLICE WITH RESIZE ACCORDING TO HEIGHT SIZE = 100px DEMO : A live demo is also added with this class, it includes two php files 1. upload_example.php -- to upload image 2. uploaded_example.php -- to display the uploaded image with the use of JPEGSlicer class ENJOY... thecoderin@aol.in anish Karim C. |
Files |
File | Role | Description |
---|---|---|
JPEGSlicer.php | Class | The class file |
upload_example.php | Example | Example Page |
uploaded_example.php | Example | Example Page - 2 |
Readme.txt | Doc. | readme |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Comments (1) | |||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.