imagepng

(PHP 3 >= 3.0.13, PHP 4, PHP 5)

imagepng - Выводит изображение в браузер или в файл

bool imagepng ( resource image [, string filename] )

imagepng() creates the PNG file in filename from the image image. The image argument is the return from the imagecreate() or imagecreatefrom* function.

The filename argument is optional, and if left off or filled with a NULL value, the raw image stream will be output directly.

$im = imagecreatefrompng("test.png");
imagepng($im);

Смотрите также imagegif(), imagewbmp(), imagejpeg(), imagetypes(), примеры работы с изображениями на PHP.

Все функции gd
Все функции изображение
Описание на ru2.php.net
Описание на php.ru