WP_Image_Editor::get_quality()publicWP 4.0.0

Gets the Image Compression quality on a 1-100% scale.

Method of the class: WP_Image_Editor{}

No Hooks.

Return

Int. Compression Quality. Range: [1,100]

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->get_quality();

Changelog

Since 4.0.0 Introduced.

WP_Image_Editor::get_quality() code WP 6.6.2

public function get_quality() {
	if ( ! $this->quality ) {
		$this->set_quality();
	}

	return $this->quality;
}