post icon

Uploading image using class.upload.php

Uploading Image using “class.upload.php” for various image size’s.

 

if ($handle->uploaded) {
$handle->file_new_name_body   = $name;
$handle->image_resize         = true;
$handle->image_x              = 170;
$handle->image_ratio_y        = true;
$handle->process($savepath);

$handle->image_watermark       = ‘nbs-logo.png’;
$handle->image_watermark_position = ‘R’;

//medium image size
$savepath = “ians/Photo/”.$date.”/med/”;
$handle->file_new_name_body   = $name;
$handle->image_resize         = true;
$handle->image_x              = 800;
$handle->image_ratio_y        = true;
$handle->process($savepath);

//original image size
$savepath = “ians/Photo/”.$date.”/ori/”;
$handle->file_new_name_body   = $name;
$handle->image_resize         = false;
$handle->process($savepath);

}

February 14, 2013

Comments are closed.

Leave a comment