Welcome Guest, Not a member yet? Register   Sign In
SOLVED - [Image_lib] - dynamic_output (1.7 to 2.0)
#1

[eluser]Unknown[/eluser]
Hi,
few days ago I've unpacked CI 2.0 and installed MX for the modularization of my controllers.
Now I need to create thumbnails on the fly with Image_lib or Image_moo but i've strange problem. If I create a thumbnail and save it to disk (local and remote) methods work well but if I spit out the dynamic output i get blank page!

The code
Code:
$this->load->library('image_lib');
  
$config['thumbnail'] = array(
  'image_library' => 'gd2',
  'source_image' => "./uploads/{$filename}",
  'width' => $w,
  'height' => $h,
  'create_thumb'   => true,
  'maintain_ratio' => false,
  'quality'        => '90',  
  'dynamic_output' => true
);

$this->image_lib->initialize($config['thumbnail']);

$this->image_lib->resize();

I call method by
Code:
<img src="admin/{controller}/{method}/{width}/{height}/{filename}" alt="Image"/>

- File exists,
- Path is correct,
- Same basic configuration,
- Same php.ini.

Some month ago i've got the same problem with CI1.7 and i solved changing the position of the configuration items of Image_lib and their option.

Does anyone have the same problem? I'm going crazy! Confusednake:

P.S.: Sorry for my english! Tongue




Theme © iAndrew 2016 - Forum software by © MyBB