Uses
Uses | Description |
---|---|
wp-includes/class-wp-image-editor.php: WP_Image_Editor::set_quality() | Sets Image Compression quality on a 1-100% scale. |
Gets the Image Compression quality on a 1-100% scale.
(int) Compression Quality. Range: [1,100]
File: wp-includes/class-wp-image-editor.php
public function get_quality() { if ( ! $this->quality ) { $this->set_quality(); } return $this->quality; }
Version | Description |
---|---|
4.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor/get_quality