Welcome Guest, Not a member yet? Register   Sign In
How i can resize image form file upload ?
#1

[eluser]Unknown[/eluser]
Hello everbody.

Code:
$icon="./uploads/icon_place/$file_name";/// it's work
        // but i want to use file from $_FILES['myfile']['tmp_name'] i try it and dose't work
    $config['image_library'] = 'gd2';
    $config['source_image'] = $icon;
    //$config['create_thumb'] = TRUE;
    $config['maintain_ratio'] = TRUE;
    $config['width'] = 50;
    $config['height'] = 50;
    $config['new_image']="./uploads/icon_place/$file_name";
    
    
    
    $this->load->library('image_lib', $config);
    if ( ! $this->image_lib->resize())
    {
    echo $this->image_lib->display_errors();
    }
I want to use file form $_FILES ?
help me.


Messages In This Thread
How i can resize image form file upload ? - by El Forum - 06-26-2009, 09:25 PM
How i can resize image form file upload ? - by El Forum - 06-27-2009, 06:33 PM
How i can resize image form file upload ? - by El Forum - 06-28-2009, 03:20 AM
How i can resize image form file upload ? - by El Forum - 06-28-2009, 08:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB