Help! GD Support enabled, CI tells me its not - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Help! GD Support enabled, CI tells me its not (/showthread.php?tid=1894) |
Help! GD Support enabled, CI tells me its not - El Forum - 07-03-2007 [eluser]herbageonion[/eluser] Hi, I have GD Support enabled on my server but CI tells me: Quote:Your server does not support the GD function required to process this type of image. Code From Controller: Code: $img_config['image_library'] = 'GD2'; From phpinfo(): Code: GD Support: enabled Can anyone tell me what the problem is? Cheers - E Help! GD Support enabled, CI tells me its not - El Forum - 07-03-2007 [eluser]ztinger[/eluser] I had the same problem too. In the constructor or at the begining of you function, load the library Code: $this -> load -> library('image_lib'); then, within the code you posted, try reeplacing one line: Code: //$this->load->library('image_lib', $img_config); And tell me how it goes.. Help! GD Support enabled, CI tells me its not - El Forum - 07-03-2007 [eluser]herbageonion[/eluser] Hey, thanks for replying. I tried that, no luck though. Still getting the same message. Really stumped with this one, I tried changing the 'image_library' back to 'GD' but no luck there either. Any other suggestions? I'm using PHP 4.3.1 by the way, would that have any bearing on it? Help! GD Support enabled, CI tells me its not - El Forum - 07-03-2007 [eluser]ztinger[/eluser] can you post your entire code? I mean the constructor and then that particular function code. Help! GD Support enabled, CI tells me its not - El Forum - 07-04-2007 [eluser]Crimp[/eluser] The question is also what type of image you are feeding it. If you look through the CI library, you'll see eactly what GD functions are being used for your image type. Setting type/types allowed in configs may also have some impact on the outcome. Help! GD Support enabled, CI tells me its not - El Forum - 07-04-2007 [eluser]herbageonion[/eluser] Hi ztinger, Here is the code from the Constructor and the Edit Method as requested, thanks for having a look. Code: class News extends Controller Hi, Crimp, I'm uploading a jpg. I'll have a look through the libraries now I'll let ye know if I find anything to help. Cheers Help! GD Support enabled, CI tells me its not - El Forum - 07-04-2007 [eluser]ztinger[/eluser] hmmm. have you tried with both 'GD' and 'GD2' ? Help! GD Support enabled, CI tells me its not - El Forum - 07-05-2007 [eluser]herbageonion[/eluser] Hey ztinger, yeah I tried both but still no luck. I really cant figure it out. Help! GD Support enabled, CI tells me its not - El Forum - 07-05-2007 [eluser]modano[/eluser] I have the same problem... Help! GD Support enabled, CI tells me its not - El Forum - 07-05-2007 [eluser]batteries[/eluser] have you tried reinstalling GD? |