Welcome Guest, Not a member yet? Register   Sign In
Image upload problem
#1

[eluser]spagi[/eluser]
Hi, I have problem,
I am trying upload image and create thumb ...it is working perfect if is image's height or weight more than 200px but if is size smaller the CI do not create thumb, it do only upload.
Can anyone help ??
#2

[eluser]pistolPete[/eluser]
Post your code please.
Do you get any errors?
#3

[eluser]spagi[/eluser]
Hmm I detected The file's size was more than 1Mb and I get error
Your server does not support the GD function required to process this type of image.

Your server does not support the GD function required to process this type of image.

Do you know what can I do?
#4

[eluser]pistolPete[/eluser]
What GD library are you using?
Whats the setting of memory_limit?
What's your image library configuration?
#5

[eluser]spagi[/eluser]
Memory limit 24 MB
php info http://peklo.core.ignum.cz/phpinfo.php

$nazev=$this->upload->data($field_name);

$pomer=$nazev['image_height']/$nazev['image_width'];

$config['image_library'] = 'gd2';
$config['source_image'] = './zbozi/'.$nazev['file_name'];
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;

$config['width'] = 100/$pomer;
$config['height'] = 100;




Theme © iAndrew 2016 - Forum software by © MyBB