What could I implement into my php script so that when a user registers It uploads their desired image Makes it into a square 150x150 image but keeps its proportions. Basically cutting off the excess image. I'm guessing this is PHP GD? Thank You. +rep to all help.
get phpthumb ! thats what you need if you have GD enabled in your php.ini http://phpthumb.sourceforge.net/ after that, rest would be a piece of cake http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php for more
other than that (which is the best approach imho) you could also use getimagesize() and make sure that it a certain h/w. or even check to make sure that it isn't over 80x80 and then scale it down to 50x50 or your desired size to help prevent quality loss within the avatar itself.