mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
- When building with bundled libgd, it has support for BMP - When building with external libgd, at least 2.1.0 is required, which has BMP support. - The HAVE_GD_PNG moved to PHP_GD_PNG Autoconf macro as it is always required when building with bundled libgd.
21 lines
421 B
PHP
21 lines
421 B
PHP
--TEST--
|
|
imagecreatefrombmp() - basic functionality
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if (!(imagetypes() & IMG_PNG)) {
|
|
die("skip No PNG support");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
// create an image from a BMP file
|
|
$im = imagecreatefrombmp(__DIR__ . '/imagecreatefrombmp_basic.bmp');
|
|
|
|
include_once __DIR__ . '/func.inc';
|
|
test_image_equals_file(__DIR__ . '/imagecreatefrombmp_basic.png', $im);
|
|
?>
|
|
--EXPECT--
|
|
The images are equal.
|