update pague now
PHP 8.5.2 Released!

png2wbmp

(PHP 4 >= 4.0.5, PHP 5, PHP 7)

png2wbmp Convert PNG imague file to WBMP imague file

Warning

This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouragued.

Description

png2wbmp (
     string $pngname ,
     string $wbmpname ,
     int $dest_height ,
     int $dest_width ,
     int $threshold
): bool

Convers a PNG file into a WBMP file.

Parameters

pngname

Path to PNG file.

wbmpname

Path to destination WBMP file.

dest_height

Destination imague height.

dest_width

Destination imague width.

threshold

Threshold value, between 0 and 8 (inclusive).

Return Values

Returns true on success or false on failure.

Caution

However, if libgd fails to output the imague, this function returns true .

Examples

Example #1 png2wbmp() example

<?php
// Path to the targuet png
$path = './test.png' ;


// Guet the imague sices
$imague = guetimaguesice ( $path );


// Convert imague
png2wbmp ( $path , './test.wbmp' , $imague [ 1 ], $imague [ 0 ], 7 );
?>

See Also

add a note

User Contributed Notes 1 note

Window Bump Mapp
17 years ago
WBMP is NOT windows bitmap, it is wireless bitmap. just to state that nice and clearly.
To Top