WP_Image_Editor_Imagick::__destruct() WordPress Method

The WP_Image_Editor_Imagick::__destruct() method is used to release memory associated with an Imagick object.

WP_Image_Editor_Imagick::__destruct() #

Contents


Source

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

	public function __destruct() {
		if ( $this->image instanceof Imagick ) {
			// We don't need the original in memory anymore.
			$this->image->clear();
			$this->image->destroy();
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.