Image is cropped but is turned completely black?? - 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 is cropped but is turned completely black?? (/showthread.php?tid=37871) |
Image is cropped but is turned completely black?? - El Forum - 01-23-2011 [eluser]Wonder Woman[/eluser] Hi, I have a form which uploads an image and copies it in to three other folders but resizes it before they are put there. However, I need these images to be the exact sizes which I specify without stretching etc, so I have tried the cropping feature but I can't seem to get it right because the image is black when I look at it. I would be most grateful if you could help me. Controller Code: $config['upload_path'] = $_SERVER['DOCUMENT_ROOT'].'/website/uploads/original/'; If you could tell me where I am going wrong that would be great, I want all images to be 181 by 115. Many thanks. Image is cropped but is turned completely black?? - El Forum - 01-24-2011 [eluser]Wonder Woman[/eluser] I really need to fix this - please help me Image is cropped but is turned completely black?? - El Forum - 01-24-2011 [eluser]John_Betong[/eluser] Does your script work on LOCALHOST? If it does then check your GD Library. Code: $config['image_library'] = 'GD2'; // my default to ONLINE Library |