(PHP 3 >= 3.0.13, PHP 4, PHP 5)
Outputs or saves a PNG image from the given image.
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
The path to the saved file. If not set or NULL, the raw image stream will be outputed directly.
Compression level: from 0 (no compression) to 9.
Restituisce TRUE in caso di successo, FALSE in caso di fallimento.
<?php$im = imagecreatefrompng("test.png");imagepng($im);?>