DjHuSo
  1. if ($handle->uploaded) {
  2. $handle->file_new_name_body = 'news_'.$id;
  3. $handle->allowed = array('image/jpeg', 'image/jpg', 'image/gif', 'image/png');
  4. $handle->file_max_size = 99999 * $set['flsz'];
  5. $handle->file_overwrite = true;
  6. $handle->image_resize = true;
  7. $handle->image_x = true;
  8. $handle->image_y = true;
  9. $handle->image_ratio_no_zoom_in = true;
  10. $handle->image_convert = 'jpg';
  11. $handle->image_text = $home.' - '.$titleaju;
  12. $handle->image_text_font = 0;
  13. $handle->image_text_background = '#555';
  14. $handle->image_text_color = '#FEFFFB';
  15. $handle->image_text_background_percent = 50;
  16. $handle->image_text_padding = 5;
  17. $handle->image_text_x = 'BR';
  18. $handle->image_text_y = 5;
  19. $handle->image_convert = 'jpg';
  20. $handle->process('files/news');
  21. if ($handle->processed) {
  22. @ chmod('files/news/news_'.$id.'.jpg', 0666);
  23. }
  24. }



Manashu koda sayt nomini bosyapti lekin juda kichik shuni qanday kattalashtirsam bo'ladi va ong tarfning pastiga tushurish kerak yana textni steylini o'zgartirsa bo'ladimi?