Hello, I'm having a probelm output wbmp images. Something seems to keep
going wrong with the encoding, because I start with a good jpeg and get
a nonworking wbmp on the other end.
here is my code:
$image_p = imagecreatetruecolor($new_width, $new_height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width,
$new_height, $width, $height);
// Output new image
imagewbmp($image_p, "..path..");
Replacing the imagewbmp with imagejpeg will output a valid jpeg file,
or I can output a valid PNG as well. But outputing a wbmp never works,
I get a busted image. Anyone know what's going on here? Am I missing
some color conversion step?