php man page for imagepng

Query: imagepng

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IMAGEPNG(3)								 1							       IMAGEPNG(3)

imagepng - Output a PNG image to either the browser or a file

SYNOPSIS
bool imagepng (resource $image, [string $filename], [int $quality], [int $filters])
DESCRIPTION
Outputs or saves a PNG image from the given $image.
PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $filename -The path to save the file to. If not set or NULL, the raw image stream will be outputted directly. Note NULL is invalid if the $quality and $filters arguments are not used. o $quality - Compression level: from 0 (no compression) to 9. o $filters - Allows reducing the PNG file size. It is a bitmask field which may be set to any combination of the PNG_FILTER_XXX constants. PNG_NO_FILTER or PNG_ALL_FILTERS may also be used to respectively disable or activate all filters.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+--------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------+ | 5.1.3 | | | | | | | Added the $filters parameter. | | | | | 5.1.2 | | | | | | | Added the $quality parameter. | | | | +--------+--------------------------------+
EXAMPLES
<?php $im = imagecreatefrompng("test.png"); header('Content-Type: image/png'); imagepng($im); imagedestroy($im); ?>
SEE ALSO
imagegif(3), imagewbmp(3), imagejpeg(3), imagetypes(3), imagesavealpha(3). PHP Documentation Group IMAGEPNG(3)
Related Man Pages
imagecreate(3) - php
imagegif(3) - php
imagecreatefromstring(3) - php
imageflip(3) - php
imagepng(3) - php
Similar Topics in the Unix Linux Community
The value of work compared to quality of life
PRICE 0.8.3 (Default branch)
Difference between filters of ps
Spammer bypassed filters
iDVD 7.0: Burned DVD has interlacing, pixelation, or image quality issues