View Full Version : jpeg2bmp help please..

08-13-2007, 10:41 AM
Hi all, this is my code:

$image = @imagecreatefromjpeg($filename);
if ($image === false) { die ('Unable to open image'); }

$height = imagesy($image);
$width = imagesx($image);

$bmpdest = "../bmp/" . $rand . ".bmp";
$bmp = jpeg2wbmp($filename, $bmpdest, 100, 100, 4);

It's creating the file and everything, but once the .bmp is downloaded and opened, it's saying it's not a valid format.

Anyone able to shed some light?

08-13-2007, 12:12 PM
I'm starting to think that this isn't possible :mad:

08-13-2007, 06:20 PM
are you calling the image via html <img scr="yourpage.php" alt="img manip with php" />

08-14-2007, 12:42 AM
WBMP is not a bitmap like you're thinking it is. http://www.webopedia.com/TERM/W/WBMP.html

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum