imagecreatefrombmp_basic.phpt 481 B

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