Resizing image does not work |
Hi, I have spent a whole day trying to trace this issue.
The closest I got was this: https://forum.codeigniter.com/thread-60211.html I CAN upload images. I checked phpinfo() and I do have GD installed and enabled. I am using a relative path. the upload folder has the correct permissions for www-data But I get this error on running the resize command: Quote:Your server does not support the GD function required to process this type of image. BTW, I'm using Ubuntu 14.04 Can someone please help debug this? Thanks!
I fixed it through trial-and error. I'm posting this for the benefit of someone else.
My non-working code: PHP Code: $config['image_library'] = 'gd2'; To make it work, I just removed the line: PHP Code: $this->CI->image_lib->clear(); I found the use of the clear method in another forum but simply removing it worked.
Your answer is in your quuote .. you have to install an image library like GD.
|
Welcome Guest, Not a member yet? Register Sign In |