is_gd_image ( $image )

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


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 GdImage object instance or a resource of type `gd`. Any other type will return false.

Related Functions

has_header_image, is_time, file_is_valid_image, wp_load_image, is_date

Top Google Results

User discussions

wpseek mobile