png2wbmp(3) php man page | unix.com

Man Page: png2wbmp

Operating Environment: php

Section: 3

PNG2WBMP(3)								 1							       PNG2WBMP(3)

png2wbmp - Convert PNG image file to WBMP image file

SYNOPSIS
bool png2wbmp (string $pngname, string $wbmpname, int $dest_height, int $dest_width, int $threshold)
DESCRIPTION
Converts a PNG file into a WBMP file.
PARAMETERS
o $pngname - Path to PNG file. o $wbmpname - Path to destination WBMP file. o $dest_height - Destination image height. o $dest_width - Destination image width. o $threshold - Threshold value, between 0 and 8 (inclusive).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 png2wbmp(3) example <?php // Path to the target png $path = './test.png'; // Get the image sizes $image = getimagesize($path); // Convert image png2wbmp($path, './test.wbmp', $image[1], $image[0], 7); ?>
NOTES
Note WBMP support is only available if PHP was compiled against GD-1.8 or later.
SEE ALSO
jpeg2wbmp(3). PHP Documentation Group PNG2WBMP(3)
Related Man Pages
imagecreatefromwbmp(3) - php
imageflip(3) - php
imagefilledellipse(3) - php
imageistruecolor(3) - php
imagetruecolortopalette(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun