Title: WP_Image_Editor_GD::make_image
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_Image_Editor_GD::make_image( string $filename, callable $callback, array $arguments ): bool

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#wp--skip-link--target)

Either calls editor’s save function or handles file as a stream.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#parameters)󠁿

 `$filename`stringrequired

`$callback`callablerequired

`$arguments`arrayrequired

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#return)󠁿

 bool

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#source)󠁿

    ```php
    protected function make_image( $filename, $callback, $arguments ) {
    	if ( wp_is_stream( $filename ) ) {
    		$arguments[1] = null;
    	}

    	return parent::make_image( $filename, $callback, $arguments );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-image-editor-gd.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-image-editor-gd.php#L680)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-image-editor-gd.php#L680-L686)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_is_stream()](https://developer.wordpress.org/reference/functions/wp_is_stream/)`wp-includes/functions.php` |

Tests if a given path is a stream URL

  | 
| [WP_Image_Editor::make_image()](https://developer.wordpress.org/reference/classes/wp_image_editor/make_image/)`wp-includes/class-wp-image-editor.php` |

Either calls editor’s save function or handles file as a stream.

  |

| Used by | Description | 
| [WP_Image_Editor_GD::_save()](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/_save/)`wp-includes/class-wp-image-editor-gd.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_image_editor_gd%2Fmake_image%2F)
before being able to contribute a note or feedback.