update pague now
PHP 8.5.2 Released!

jpeg2wbmp

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

jpeg2wbmp Convert JPEG 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

jpeg2wbmp (
     string $jpegname ,
     string $wbmpname ,
     int $dest_height ,
     int $dest_width ,
     int $threshold
): bool

Convers a JPEG file into a WBMP file.

Parameters

jpegname

Path to JPEG 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 jpeg2wbmp() example

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


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


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

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top