Core Function
View Source on Trac ↗ is_gd_image()
is_gd_image( mixed $image ) Determines whether the value is an acceptable type for GD image functions.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (resource | | GdImage | false) $image A value to check the type for. Required |
Return Value
(bool)
bool True if `$image` is either a GD image resource or a GdImage instance,
false otherwise.
Function Information
Since Version
5.6.0
Source File
wp-includes/media.php
Advertisement