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