a few words about web development

Load and save Bmp in PHP: imagecreatefrombmp & imagebmp

Another straight to the point solution
If you want to open or create 24bit BMP images with PHP- just grab my simple library.

You can use this the same way as imagepng, imagegif or imagejpeg:

include 'Bmp.php';

header('Content-type: image/bmp');
$im = imagecreatefrompng('test.png');
imagebmp($im);

Or like imagecreatefromjpeg:

$im = imagecreatefrombmp('test.bmp');
imagepng($im);

It can also be used as a class:
header('Content-type: image/bmp'); 
$im = imagecreatefrompng('test.png'); 
Bmp::imagebmp($im);

Or:

header('Content-type: image/png'); 
$im = Bmp::imagecreatefrombmp('test.bmp'); 
imagepng($im);

Comments

JakeOn line :53 fwrite($f, self::byte3($rgb));