Image Manipulation Class - cropping - 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 Manipulation Class - cropping (/showthread.php?tid=43948) |
Image Manipulation Class - cropping - El Forum - 07-28-2011 [eluser]dandys997[/eluser] Hi there, I've got one, short question: I've got a picture (JPG, 525x600), which I should crop properly. I want to "cut" it from a left top corner at position (0, 100) and crop should be 525 px wide and 100 px tall. How should I set the config for IMC? Now, I've got this code: Code: $config['source_image']="./path/to/image.jpg But it doesn't crop the image correctly. What's wrong with it? Thanks in advance for help. |