WordPress at a glance
function is not described

wp_load_image() WP 2.1.0

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

Load an image from a string, if PHP supports it.

  • See: wp_get_image_editor()

No Hooks.

Return

resource. The resulting image resource on success, Error string on failure.

Usage

wp_load_image( $file );
$file(string) (required)
Filename of the image to load.

Code of wp load image: wp-includes/deprecated.php VER 5.0.3

<?php
function wp_load_image( $file ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wp_get_image_editor()' );

	if ( is_numeric( $file ) )
		$file = get_attached_file( $file );

	if ( ! is_file( $file ) ) {
		/* translators: %s: file name */
		return sprintf( __( 'File &#8220;%s&#8221; doesn&#8217;t exist?' ), $file );
	}

	if ( ! function_exists('imagecreatefromstring') )
		return __('The GD image library is not installed.');

	// Set artificially high because GD uses uncompressed images in memory.
	wp_raise_memory_limit( 'image' );

	$image = imagecreatefromstring( file_get_contents( $file ) );

	if ( ! is_resource( $image ) ) {
		/* translators: %s: file name */
		return sprintf( __( 'File &#8220;%s&#8221; is not an image.' ), $file );
	}

	return $image;
}