imagecreatefromtga_variation.phpt 414 B

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