php8.5
Home/ Manual/ image / functions/ imagecreatefromtga

imagecreatefromtga

PHP function Edit on GitHub ✎

(PHP 7 >= 7.4.0, PHP 8)

New

Description

imagecreatefromtga(string $filename): GdImage|false

imagecreatefromtga() returns an image object representing the image obtained from the given filename.

Parameters

filename

Path to the Truevision TGA image.

Return Values

Identifier

Changelog

VersionDescription
8.0.0On success, this function returns a GDImage instance now; previously, a Resource was returned.

Source: reference/image/functions/imagecreatefromtga.xml · from the official PHP manual (php/doc-en)