libreria GD

http://ch.php.net/manual/en/book.image.php