WP_Image_Editor::get_quality

Advertisement

Summery Summery

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

Syntax Syntax

WP_Image_Editor::get_quality()

Return Return

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

Source Source

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

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

		return $this->quality;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply