Some time ago I was looking for the same, but didn't find answer, hot to do this. So, I do resizing like this:
$newWidth = "80";
exec("convert -strip -geometry \"".$newWidth."x".$newWidth."\" \"$src_file\" \"$dest_file\"");
This makes thumbnail, but doesn't crops the largest side.