views:

63

answers:

1

I want a function which when i upload a photo it should crop the image irrespective of the ration of the image from the centre making sure the crop is well inside the image.

alt text

the above image is 2592 * 1944

i want to crop an image of 159 * 129

alt text

and this is what i get when using a plugin for cakephp (Miles Johnsons Upload Plugin)

can some one help me find a image crop function to do this or help me with the algorithm in doing the same.

+1  A: 

I've used this: http://shiftingpixel.com/2008/03/03/smart-image-resizer/ to create all the image thumbnails found here: http://www.patriciashin.com/painting.php

greggory.hz
Sorry I didn't add more, my laptop battery died. Anyway, this script is extremely customizable. Their documentation is pretty good. I think I was even able to tweak the script to better meet my needs. Cakephp makes it fairly easy to into 3rd party scripts, but you might have to concert this script to a class to be most effective. Let me know your thoughts and I'd be willing to help out.
greggory.hz
looks promising. I am planning to build a plugin are release it as open source. would you be interested ? since the scripts out there i didnt find a lot of them doing proper resize and cropping.
Harsha M V
Sure I'd be interested. Just contact me offsite to coordinate. I don't always have tons of time, but I'll help however I can.
greggory.hz
how to contact u offsite ?
Harsha M V
greggory.hz