WP_Image_Editor::get_quality() WordPress Method

The WP_Image_Editor::get_quality() method is used to get the current image editor quality setting. This setting is a number between 0 and 1, where 1 is the highest quality and 0 is the lowest quality.

WP_Image_Editor::get_quality() #

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


Return

(int) Compression Quality. Range: [1,100]


Top ↑

Source

File: wp-includes/class-wp-image-editor.php

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

		return $this->quality;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.