[eluser]RRosset[/eluser]
Hello, i read a lot about upload & resize images, i read a lot and i wasn't able to find a solution yet.
I'm gonna post two codes, referring to them as code1 and code2
CODE 1
Code:
$config['image_library'] = 'GD2';
$config['source_image'] = $full_path;
$config['create_thumb'] = FALSE;
$config['new_image'] = $file_path.'xyz/';
$config['maintain_ratio'] = TRUE;
$config['width'] = 550;
$config['height'] = 455;
$this->image_lib->initialize($config);
$this->image_lib->resize();
$this->image_lib->clear();
CODE 2
Code:
$config['image_library'] = 'GD2';
$config['source_image'] = $full_path;
$config['create_thumb'] = FALSE;
$config['new_image'] = $file_path.'large/';
$config['maintain_ratio'] = TRUE;
$config['width'] = 550;
$config['height'] = 455;
$this->image_lib->initialize($config);
$this->image_lib->resize();
$this->image_lib->clear();
The first code, works, the second one doesn't. Probably you're gonna say, it's a CHMOD issue! well. I Use the same folder, just rename it to a new name. If i change the new_image value to... for example, wer, it works, but zxc doesn't, big_image doesn't, but products does. Finally i created the large view in a xyz folder, but it's a weird problem. Ha! if someone noticed that before and fixed it, please lemme know what's wrong. I don't care about a fast solution since i solved the issue with a new folder, but... isn't it a really annoying problem?
Thanks in advance,
Bob