WP_Image_Editor_Imagick::__destruct

Advertisement

Syntax Syntax

WP_Image_Editor_Imagick::__destruct()

Source 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();
		}
	}

Advertisement

Advertisement

Leave a Reply