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