Saves current in-memory image to file.
Parameters
$destfilename
string|nulloptional- Destination filename.
Default:
null
$mime_type
string|nulloptional- The mime-type.
Default:
null
Source
public function save( $destfilename = null, $mime_type = null ) {
$saved = $this->_save( $this->image, $destfilename, $mime_type );
if ( ! is_wp_error( $saved ) ) {
$this->file = $saved['path'];
$this->mime_type = $saved['mime-type'];
}
return $saved;
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.