CodeIgniter Forums
Image class or GD problem - 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: Image class or GD problem (/showthread.php?tid=27491)



Image class or GD problem - El Forum - 02-12-2010

[eluser]zoko2902[/eluser]
Hi all!

I've been testing the image library for a project and stumbled upon a wierd problem. Maybe I'm missing out on something and someone can point it out.

The image class outputs generated thumbs in grayscale. It just strips out all colors from it. It's like the class isn't using GD imagetruecolor. I'm not sure what's happening? Anyone has an idea?


Image class or GD problem - El Forum - 02-14-2010

[eluser]zoko2902[/eluser]
I took a better look on those thumbnails and realized they where not grayscaled but more of a 256 colors schema. Reviseing my code I noticed that in config I was setting gd instead of gd2.

Problem now solved. Hope my noobing on this subject will help someone in the future Wink.

Over and out Big Grin.