Welcome Guest, Not a member yet? Register   Sign In
Crop images with Image Manipulation Class
#1

[eluser]Kenny[/eluser]
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-gui...e_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


Messages In This Thread
Crop images with Image Manipulation Class - by El Forum - 07-27-2011, 08:06 AM
Crop images with Image Manipulation Class - by El Forum - 07-28-2011, 05:42 AM
Crop images with Image Manipulation Class - by El Forum - 07-28-2011, 07:08 AM
Crop images with Image Manipulation Class - by El Forum - 07-28-2011, 07:25 AM
Crop images with Image Manipulation Class - by El Forum - 07-28-2011, 07:41 AM
Crop images with Image Manipulation Class - by El Forum - 07-28-2011, 07:45 AM
Crop images with Image Manipulation Class - by El Forum - 02-28-2013, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB