Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lory

Pages: [1]
1
i have done step 7 but nothing change.

pls read this..


i try to upload one image with dimension 1550x1000pix. in the admin pannel i have setting max width and heigth on 445pix
when i go to upload the image apper this message:

i post attachment screenshot:

P.S. identical problem with php4.4.6

2
step 1 ----- add code in member.php
find

Code: [Select]
if (!$uploaderror) {above insert
Code: [Select]
//--------------------------------------------
//---------Start Code Auto Image Resizing --------------
//--------------------------------------------
                  if ($config['auto_image'] && !$uploaderror) {
                     if ($direct_upload) {
                        $src = MEDIA_PATH."/".$cat_id."/".$new_name;
                    }
                    else {
                        $src = MEDIA_TEMP_PATH."/".$new_name;
                    }
                    $do_resize = 0;
               if ($image_info = @getimagesize($src)) {
                       if ($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3) {
                          $do_resize = 1;
                    }
                  }
                  if ($do_resize) {
                     if (!function_exists(init_convert_options)) {
                           require(ROOT_PATH.'includes/image_utils.php');
                        }
                  if ($image_info[0] > $config['max_image_width'] || $image_info[1] > $config['max_image_height']) {
                       $convert_options = init_convert_options();
                       if (!$convert_options['convert_error']) {
                         $quality = (intval($config['auto_image_quality']) && intval($config['auto_image_quality']) <= 100) ? intval($config['auto_image_quality']) : 100;
                        if (!resize_image($src, $quality, $config['max_image_width'], 1, $config['max_image_height'])) {
                           $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name;
                                 $uploaderror = 1;
                          }
                           }
                        }
                     }
                  }
//---------------End Code auto Image Resizing----------------------------

step 2 ----- add code in /includes/upload.php
find
Code: [Select]
$this->max_height['media'] = $config['max_image_height'];below insert
Code: [Select]
   
 //---------Start Code Auto Image Resizing (part 1)----
 $this->auto_image['media'] = $config['auto_image'];
 //---------End Code Auto Image Resizing (part 1)----

step 2.2 ----- add code in /includes/upload.php
find
Code: [Select]
    if ($this->image_size[1] > $this->max_height[$this->image_type]) {
      $ok = 0;
      $this->set_error($this->lang['invalid_image_height']);
    }
below insert
Code: [Select]
         //---------Start Code Auto Image Resizing (part 2)----
          if ($this->auto_image[$this->image_type]) {
         $ok = 1;
      }
      //---------End Code Auto Image Resizing (part 2)----

step 3 ----- add code in  /admin/settings.php
find
Code: [Select]
show_setting_row("upload_emails");below insert
Code: [Select]
  //---------Start Code Auto Image Resizing ----
  show_setting_row("auto_image", "radio");
  show_setting_row("auto_image_quality");
 //---------Start Code Auto Image Resizing ----

step 4 ----- add code in /lang/italian/admin.php
find
Code: [Select]
$setting['auto_thumbnail_quality'] = "Thumbnail quality<br /><span class=\"smalltext\">0 to 100</span>";below insert
Code: [Select]
/*-- START CODE AUTO RESIZE IMAGE --*/
$setting['auto_image'] = "Auto-resize image";
$setting['auto_image_quality'] = "Auto-resize image quality";
/*-- END CODE AUTO RESIZE IMAGE --*/

this is all my step.
i dont have install another mod.

Version 4images 1.7.4
PHP Version 5.2.0


i wait your help guys.
if all it works I buy 2 license for my sites, but if dont work i cannot use it :(

3
no, nothing error. the upload is correct but the image non resized.
In the admin's panel when i set on "yes" the option Auto-Resize Image, If I save the change(on yes),automatically the admin's panel exchange again the set option on "NO".

4
Hi guys.
I have one problem, the mod doesn't work.
I have done the step by step exactly and there aren't error in the code,but,
In the admin's panel when i set on "yes" the option Auto-Resize Image, If I save the change(on yes),automatically the admin's panel exchange again the set option on "NO".
i have try to upload a image for testing the resize, but don't work

what is the solution for this problem?

Pages: [1]