i have two type of image upload : first high resolution :
$specialImages = count($_FILES['specialImg']['name']);
        $specialMinwidth = 3000;
        $specialMinheight = 2500;
        $urlSpecialImages = array();
        if ($specialImages) {                
            for ($i=1; $i<=$specialImages; $i++) {
                if ($_FILES['specialImg']['name'][$i] != "") {                    
                    if ((($_FILES['specialImg']['type'][$i] == "image/pjpeg") || 
                        ($_FILES['specialImg']['type'][$i] == "image/jpeg") || 
                        ($_FILES['specialImg']['type'][$i] == "image/png")) && 
                        ($_FILES['specialImg']['size'][$i] < $this->return_bytes(ini_get('post_max_size')))) {
                        list($width, $height, $type, $attr) = getimagesize($_FILES['specialImg']['tmp_name'][$i]);    
                    if ($width >= $specialMinwidth  && $height >= $specialMinheight) {
                        $urlSpecialImages[$i] = $_FILES['specialImg']['tmp_name'][$i];                            
                    }
                    else {
                        $this->errors[] = $this->module->l("L'image doit être au format minimum de 3000px x 2500px", 'addproduct');
                    }
second low resolution :
        $images = count($_FILES['images']['name']);
        $minwidth = 1500;
        $minheight = 1500;
        if ($images <= Configuration::get('JMARKETPLACE_MAX_IMAGES')) {
            for ($i=1; $i<=Configuration::get('JMARKETPLACE_MAX_IMAGES'); $i++) {
                if ($_FILES['images']['name'][$i] != "") {
                    if ((($_FILES['images']['type'][$i] == "image/pjpeg") || 
                        ($_FILES['images']['type'][$i] == "image/jpeg") || 
                        ($_FILES['images']['type'][$i] == "image/png")) && 
                        ($_FILES['images']['size'][$i] < $this->return_bytes(ini_get('post_max_size')))) {
                        list($width, $height, $type, $attr) = getimagesize($_FILES['images']['tmp_name'][$i]);    
                    if ($width == $minwidth  && $height == $minheight) {
                       $url_images[$i] = $_FILES['images']['tmp_name'][$i];
                   }
                   else {
                    $this->errors[] = $this->module->l('The image format need to be 1500 x 1500 pixels', 'addproduct');
                }
i want to use the special $specialImages uploaded and resize them to . 1500x1500 on images low resolution ! because i want to get both resolution by one upload ! how can i do that ?
