WordPress at a glance
function is not described

gd_edit_image_support() WP 2.9.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use wp_image_editor_supports() instead.

Check if the installed version of GD supports particular image type

No Hooks.

Return

true/false.

Usage

gd_edit_image_support( $mime_type );
$mime_type(string) (required)

Notes

  • See: wp_image_editor_supports()

Changelog

Since DEL 3.5.0 Introduced.

Code of gd edit image support: wp-includes/deprecated.php WP 5.2.2

<?php
function gd_edit_image_support($mime_type) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_image_editor_supports()' );

	if ( function_exists('imagetypes') ) {
		switch( $mime_type ) {
			case 'image/jpeg':
				return (imagetypes() & IMG_JPG) != 0;
			case 'image/png':
				return (imagetypes() & IMG_PNG) != 0;
			case 'image/gif':
				return (imagetypes() & IMG_GIF) != 0;
		}
	} else {
		switch( $mime_type ) {
			case 'image/jpeg':
				return function_exists('imagecreatefromjpeg');
			case 'image/png':
				return function_exists('imagecreatefrompng');
			case 'image/gif':
				return function_exists('imagecreatefromgif');
		}
	}
	return false;
}