WordPress at a glance
function is not described

WP_Image_Editor::get_quality() public WP 4.0.0

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

{} It's a 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.

Code of WP_Image_Editor::get_quality() WP 5.5.2

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

	return $this->quality;
}