WP_Image_Editor::get_quality(): int

In this article

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

Return

int Compression Quality. Range: [1,100]

Source

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

	return $this->quality;
}

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.