WP_Image_Editor_GD::make_image() WordPress Method
The WP_Image_Editor_GD::make_image() function is used to create a new image from a given GD resource. This function is used internally by the image editor to create images for various purposes, such as resizing or cropping.
WP_Image_Editor_GD::make_image( string $filename, callable $callback, array $arguments ) #
Either calls editor’s save function or handles file as a stream.
Parameters
- $filename
(string)(Required)
- $callback
(callable)(Required)
- $arguments
(array)(Required)
Return
(bool)
Source
File: wp-includes/class-wp-image-editor-gd.php
protected function make_image( $filename, $callback, $arguments ) { if ( wp_is_stream( $filename ) ) { $arguments[1] = null; } return parent::make_image( $filename, $callback, $arguments ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |