Hello everyone,
I’m working at the moment on uploading profile pictures for a kind of mini-social network.
There’s a feature for users allowing them to crop themselves their profile picture to create their square thumbnail thanks to jQuery-plugin imgAreaSelect http://odyniec.net/projects/imgareaselect/ (the same system as on the “Live Example” of the page)
The problem is that I don’t know how to use the Image Manipulation Class’ crop function… imgAreaSelect returns me X1, Y1, X2 and Y2 but I don’t see where I can put these infos in the function.
I’ve read the doc : http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html but the crop() explanation is not very clear and I still not understand how to use this. I don’t even know what x_axis and y_axis are.
Can you tell me how it works ?
Thank you !
k