WP_Image_Editor_Imagick::__destruct()publicWP 1.0

Method of the class: WP_Image_Editor_Imagick{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Image_Editor_Imagick = new WP_Image_Editor_Imagick();
$WP_Image_Editor_Imagick->__destruct();

WP_Image_Editor_Imagick::__destruct() code WP 6.5.3

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