1--TEST-- 2imagecreatefrombmp() - basic functionality 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php 7if (!(imagetypes() & IMG_BMP)) die('skip BMP support required'); 8if (!(imagetypes() & IMG_PNG)) { 9 die("skip No PNG support"); 10} 11?> 12--FILE-- 13<?php 14// create an image from a BMP file 15$im = imagecreatefrombmp(__DIR__ . '/imagecreatefrombmp_basic.bmp'); 16 17include_once __DIR__ . '/func.inc'; 18test_image_equals_file(__DIR__ . '/imagecreatefrombmp_basic.png', $im); 19?> 20--EXPECT-- 21The images are equal. 22