Location: PHPKode > scripts > JPEG Slicer > jpeg-slicer/Readme.txt
<------********************************************************************************************************------->
					hide@address.com
<------********************************************************************************************************------->

	FILE 	= JPEGSlicer.php
	TYPE	= PHP CLASS
	AUTHOR	= ANISH KARIM C, <hide@address.com>
	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...

hide@address.com
anish Karim C.

Return current item: JPEG Slicer