imagebmp
Supported Versions: PHP 7 >= 7.2.0, PHP 8
Output a BMP image to browser or file
imagebmp
(
GdImage $image
,
resource
|
string
|
null $file
=
null
,
bool $compressed
=
true
):
bool
Intervention/image
}
ob_start
();
imagebmp
(
$this
->
image
->
getCore
());
$this
->
image
->
mime
=
defined
(
'IMAGETYPE_BMP'
) ?
image_type_to_mime_type
(
IMAGETYPE_BMP
) :
'image/bmp'
;
$buffer
=
ob_get_contents
();
ob_end_clean
();
src/Intervention/Image/Gd/Encoder.php