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]
Source
File: wp-includes/class-wp-image-editor.php
public function get_quality() { if ( ! $this->quality ) { $this->set_quality(); } return $this->quality; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |