WP_Image_Editor_GD::save

SummerySummery

Saves current in-memory image to file.

Syntax

WP_Image_Editor_GD::save( string|null $filename = null, string|null $mime_type = null )

ParametersParameters

$filename

(string|null) (Optional)

Default value: null

$mime_type

(string|null) (Optional)

Default value: null

ReturnReturn

(array|WP_Error) 'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string

SourceSource

File: wp-includes/class-wp-image-editor-gd.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top