imagecreatefrombmp_basic.phpt 419 B

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