...

View Full Version : jpeg2bmp help please..



PhaZZed
08-13-2007, 11: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?

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

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

Inigoesdr
08-14-2007, 01: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