can anyone successfully crop image with image lib ? - 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: can anyone successfully crop image with image lib ? (/showthread.php?tid=26012) |
can anyone successfully crop image with image lib ? - El Forum - 01-03-2010 [eluser]runrun[/eluser] I try many way and i still can't get it right. If you've done it before, maybe you can share some experience ? I got the image uploaded. I got the image resized. The crop is the problem here. Code: <?php can anyone successfully crop image with image lib ? - El Forum - 02-09-2010 [eluser]xarazar[/eluser] It's probably too late and you already know the answer, but just in case: When you use ImageMagick you must specify $config['library_path']. Good luck! can anyone successfully crop image with image lib ? - El Forum - 02-09-2010 [eluser]eoinmcg[/eluser] Here's some code from my gallery app, QuickSnaps, that handles cropping: Code: function _crop_image($p, $x_off, $y_off) can anyone successfully crop image with image lib ? - El Forum - 02-10-2010 [eluser]stommert[/eluser] you have to clear your image lib. stated in the last example $this->image_lib->clear(); |