PhaZZed
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?
$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?