@saintx
Daha önceden bu konuyu beraber çözmüştük ama şunu yapamadım
Resmin bide thumb oluşturmak istiyorum yalnız şöyle bir sorun oluyor
Gerçek resimin adıyla thumb resiminin adı aynı olmasi gerek ama bunu bitürlü yapamadım
başka bir konu açmadım bu konudan devam edelim diye
if ($upload->uploaded)
{
$upload->file_auto_rename = true;
$upload->allowed = array('image/*');
$upload->file_new_name_body = uniqid(true);
$upload->image_resize = true;
$upload->image_x = 435;
$upload->image_y = 390;
$upload->process('../img/temp/sliders/');
$adi = is_null($upload->file_dst_name) || empty($upload->file_dst_name) ? "resimyok.jpg" : $upload->file_dst_name;
### Küçük Resim
$upload->allowed = array('image/*');
$upload->image_min_height = 100;
$upload->image_min_width = 100;
$upload->file_new_name_body = uniqid(true);
$upload->image_resize = true;
$upload->image_ratio_crop = true;
$upload->image_x = 200;
$upload->image_y = 100;
$upload->Process('../img/temp/sliders/kucuk');
}
if ($upload->uploaded)
{
$upload->file_auto_rename = true;
$upload->allowed = array('image/*');
$upload->file_new_name_body = uniqid(true);
$upload->image_resize = true;
$upload->image_x = 435;
$upload->image_y = 390;
$upload->process('../img/temp/sliders/');
$adi = is_null($upload->file_dst_name) || empty($upload->file_dst_name) ? "resimyok.jpg" : $upload->file_dst_name;
$adi_uzantisiz = is_null($upload->file_dst_name_body) || empty($upload->file_dst_name_body) ? "resimyok" : $upload->file_dst_name_body;
### Küçük Resim
$upload->allowed = array('image/*');
$upload->image_min_height = 100;
$upload->image_min_width = 100;
$upload->file_new_name_body = $adi_uzantisiz;
$upload->image_resize = true;
$upload->image_ratio_crop = true;
$upload->image_x = 200;
$upload->image_y = 100;
$upload->Process('../img/temp/sliders/kucuk');
}