php man page for image_type_to_extension

Query: image_type_to_extension

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IMAGE_TYPE_TO_EXTENSION(3)						 1						IMAGE_TYPE_TO_EXTENSION(3)

image_type_to_extension - Get file extension for image type

SYNOPSIS
string image_type_to_extension TRUE (int $imagetype, [bool $include_dot])
DESCRIPTION
Returns the extension for the given IMAGETYPE_XXX constant.
PARAMETERS
o $imagetype - One of the IMAGETYPE_XXX constant. o $include_dot - Whether to prepend a dot to the extension or not. Default to TRUE.
RETURN VALUES
A string with the extension corresponding to the given image type.
EXAMPLES
Example #1 image_type_to_extension(3) example <?php // Create image instance $im = imagecreatetruecolor(100, 100); // Save image imagepng($im, './test' . image_type_to_extension(IMAGETYPE_PNG)); imagedestroy($im); ?>
NOTES
Note This function does not require the GD image library. PHP Documentation Group IMAGE_TYPE_TO_EXTENSION(3)
Related Man Pages
imagepolygon(3) - php
imagefill(3) - php
imagegd(3) - php
imageistruecolor(3) - php
imagesetthickness(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch