Welcome Guest, Not a member yet? Register   Sign In
image_lib problems
#11

[eluser]clip[/eluser]
[quote author="evilgeoff" date="1248491457"]I'm sure some of this if my fault but I've had nothing but problems with CI so far. I love the idea of the framework and the ease of installation but it seems like it's one thing after another. Again a lot of this could be what this does based on my needs and they don't jive but I'm still a little frustrated.

Currently the image_lib doesn't work.

I've tried everything I've found on this site.

I get this error: <p>Your server does not support the GD function required to process this type of image.</p><p>Your server does not support the GD function required to process this type of image.</p>

I've installed gd it shows up in phpinfo().
I've checked the permissions of the image folder that's fine.
I checked to make it was installed at all.

I've set it to initialize the library's $config.
$config['image_library'] = 'GD2';
$config['source_image'] = $path;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 80;
$config['height'] = 80;
$config['new_image'] = $path.'/new/'.$image.'.jpg';
$this->load->library('image_lib');
$this->image_lib->initialize($config);
$this->image_lib->resize();
if ( ! $this->image_lib->resize())
{
$this->firephp->log($this->image_lib->display_errors());
}
$this->image_lib->clear();

I've tried everything and still nothing. At this point I would just drop this framework and move as I have deadlines, but I'm too far into the project to turn around. I'm sure this is my fault somehow but I just need results at this point before I get fired. Serious about the last part.[/quote]

Ive gotten this error before when pointing improperly to the image you want to resize.

Code:
$config['image_library'] = 'GD2';
        $config['source_image'] = $path; //this looks suspect to me.?
        $config['create_thumb'] = TRUE;
        $config['maintain_ratio'] = TRUE;
        $config['width'] = 80;
        $config['height'] = 80;
        $config['new_image'] = $path.'/new/'.$image.'.jpg';

Maybe try this instead
Code:
$config['source_image'] = $path . '/' . $image . '.jpg';




Theme © iAndrew 2016 - Forum software by © MyBB