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 — Convierte una imagen PNG en imagen WBMP
Esta funcionalidad está OBSOLETA a partir de PHP 7.2.0 y ha sido ELIMINADA a partir de PHP 8.0.0.
$pngname,$wbmpname,$dest_height,$dest_width,$thresholdConvierte una imagen PNG en imagen WBMP.
pngnameRuta al fichero PNG.
wbmpnameRuta al fichero final WBMP.
dest_heightAltura de la imagen de destino.
dest_widthAncho de la imagen de destino.
thresholdValor del umbral, entre 0 y 8 inclusive.
Esta función retorna true en caso de éxito o false si ocurre un error.
However, if libgd fails to output the image, this function returns true.
Ejemplo #1 Ejemplo con png2wbmp()
<?php
// Ruta a la imagen PNG
$path = './test.png';
// Obtención del tamaño de la imagen
$image = getimagesize($path);
// Conversión de la imagen
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.