0
 $images = count($_FILES['specialImg']['name']);
 $minwidth = 1500;
 $minheight = 1500;
 if ($images <= Configuration::get('JMARKETPLACE_MAX_IMAGES')) {
     for ($i=1; $i<=Configuration::get('JMARKETPLACE_MAX_IMAGES'); $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 == $minwidth  && $height == $minheight) {
                        $url_images[$i] = $_FILES['specialImg']['tmp_name'][$i];
                    }

i tried with but not working i already saw topic on it but im a perfect noob if you can help me thanks

$images = resize_image('_FILES['specialImg']['tmp_name'][$i]', 200, 200);
Roman
  • 2,530
  • 2
  • 27
  • 50
jolo
  • 69
  • 10

0 Answers0