imagewebp

(PHP 5 >= 5.5.0, PHP 7) Output a WebP image to browser or file bool imagewebp ( resource $image, string $filename ) Outputs or save an WebP version of the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). filename The path to save the file to. If not set or

imagewbmp

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Output image to browser or file bool imagewbmp ( resource $image [, string $filename [, int $foreground ]] ) imagewbmp() outputs or save a WBMP version of the given image. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). filename The path

imagetypes

(PHP 4 >= 4.0.2, PHP 5, PHP 7) Return the image types supported by this PHP build int imagetypes ( void ) Returns the image types supported by the current PHP installation. Returns: Returns a bit-field corresponding to the image formats supported by the version of GD linked into PHP. The following bits are returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM.

imagettftext

(PHP 4, PHP 5, PHP 7) Write text to the image using TrueType fonts array imagettftext ( resource $image, float $size, float $angle, int $x, int $y, int $color, string $fontfile, string $text ) Writes the given text into the image using TrueType fonts. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

imagettfbbox

(PHP 4, PHP 5, PHP 7) Give the bounding box of a text using TrueType fonts array imagettfbbox ( float $size, float $angle, string $fontfile, string $text ) This function calculates and returns the bounding box in pixels for a TrueType text. Parameters: size The font size. Note: In GD 1, this is measured in pixels. In GD 2, this is measured in points.

imagetruecolortopalette

(PHP 4 >= 4.0.6, PHP 5, PHP 7) Convert a true color image to a palette image bool imagetruecolortopalette ( resource $image, bool $dither, int $ncolors ) imagetruecolortopalette() converts a truecolor image to a palette image. The code for this function was originally drawn from the Independent JPEG Group library code, which is excellent. The code has been modified to preserve as much alpha channel information as possible

imagesy

(PHP 4, PHP 5, PHP 7) Get image height int imagesy ( resource $image ) Returns the height of the given image resource. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). Returns: Return the height of the image or FALSE on errors. Exa

imagesx

(PHP 4, PHP 5, PHP 7) Get image width int imagesx ( resource $image ) Returns the width of the given image resource. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). Returns: Return the width of the image or FALSE on errors. Exampl

imagestringup

(PHP 4, PHP 5, PHP 7) Draw a string vertically bool imagestringup ( resource $image, int $font, int $x, int $y, string $string, int $color ) Draws a string vertically at the given coordinates. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). font Can be 1, 2, 3, 4, 5 for

imagestring

(PHP 4, PHP 5, PHP 7) Draw a string horizontally bool imagestring ( resource $image, int $font, int $x, int $y, string $string, int $color ) Draws a string at the given coordinates. Parameters: image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(). font Can be 1, 2, 3, 4, 5 for built-in fo