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
2009-08-04 15:04:16
PHP has built-in GD support
David
2009-08-04 15:06:10
@karim79, thanks, I'll check that out.
2009-08-04 15:13:23
@David ImageMagick results in better quality images and is faster.
ceejayoz
2009-08-04 15:23:47
I have no idea how to install this fucking ImageMagick...
2009-08-04 15:51:17
@Somebody_From_Here - see my edit. And swearing is bad, mmkay?
karim79
2009-08-04 15:54:43
Thank you. I'll give that a look. Also, swearing is my middle name, but I do not believe in God. =)
2009-08-04 16:10:22