كود: تحديد الكل
if( ($config['write_imgs'] != 0) && in_array(strtolower($this->typet), array('png', 'jpg', 'jpeg')))
{
$sizes=array(1=>'100*75', 2=>'150*112', 3=>'320x240', 4=>'640*480', 5=>'800*600', 6=>'1024*768', 7=>'1280*1024', 8=>'1600*1200');
if(isset($_POST['resize']) && $_POST['resize'] > 0){
list($new_width, $new_height)=explode('*', $sizes[$_POST['resize']]);
$old_x=imageSX($src_img);
$old_y=imageSY($src_img);
$image_thumb=imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_thumb, strtolower($this->typet), 0, 0, 0, 0, $new_width, $new_height, $old_x, $old_y);
$this->watermark($folderee . "/" . $filname,$image_thumb, 'images/watermark.png');
}else{
$this->watermark($folderee . "/" . $filname,strtolower($this->typet), 'images/watermark.png');
}
}
فهل هناك من يسعفني..