WBMP is NOT windows bitmap, it is wireless bitmap. just to state that nice and clearly.(PHP 4 >= 4.0.5, PHP 5, PHP 7)
png2wbmp — Convertit une image PNG en image WBMP
Cette fonctionnalité est OBSOLÈTE à partir de PHP 7.2.0 et a été SUPPRIMÉE à partir de PHP 8.0.0.
$pngname,$wbmpname,$dest_height,$dest_width,$thresholdConvertit une image PNG en image WBMP.
pngnameChemin vers le fichier PNG.
wbmpnameChemin vers le fichier final WBMP.
dest_heightHauteur de l'image de destination.
dest_widthLargeur de l'image de destination.
thresholdValeur du seuil, entre 0 et 8 inclus.
Cette fonction retourne true en cas de succès ou false si une erreur survient.
Toutefois, si libgd ne parvient pas à produire l'image, cette fonction retourne true.
Exemple #1 Exemple avec png2wbmp()
<?php
// Chemin vers la cible png
$path = './test.png';
// Récupération de la taille de l'image
$image = getimagesize($path);
// Conversion de l'image
png2wbmp($path, './test.wbmp', $image[1], $image[0], 7);
?>WBMP is NOT windows bitmap, it is wireless bitmap. just to state that nice and clearly.