is_gd_image


is_gd_image ( $image )

Parameters:
  • (resource|GdImage|bool) image A value to check the type for.
Returns:
  • (bool) True if $image is either a GD image resource or GdImage instance, false otherwise.
Defined at:

Description

Determines whether the value is an acceptable type for GD image functions.In PHP 8.0, the GD extension uses GdImage objects for its data structures. This function checks if the passed value is either a resource of type `gd` or a GdImage object instance. Any other type will return false.

Related Functions

is_page, is_date, file_is_valid_image, wp_load_image, has_header_image

Top Google Results

User discussions

wpseek mobile