tags:

views:

74

answers:

1

Like at Digg.com, I want to get members' pictures cropped for an avatar use. Please show me how to do this in PHP.

+3  A: 

Here is a free script that does it using either GD or Imagick (Imagick is faster so I would use that):

Crop & Resize with JavaScript, PHP, and ImageMagick

From near the top of the page linked above:

Update: A new version of this example and demonstration has been released. Version 1.1 includes a GD version of the script as well as a number of functional improvements worth checking out.

karim79
PHP has built-in GD support
David
@karim79, thanks, I'll check that out.
@David ImageMagick results in better quality images and is faster.
ceejayoz
I have no idea how to install this fucking ImageMagick...
@Somebody_From_Here - see my edit. And swearing is bad, mmkay?
karim79
Thank you. I'll give that a look. Also, swearing is my middle name, but I do not believe in God. =)