WP_Image_Editor::get_quality()
Gets the Image Compression quality on a 1-100% scale.
Method of the class: WP_Image_Editor{}
No Hooks.
Return
Int
. Compression Quality. Range: [1,100]
Usage
$WP_Image_Editor = new WP_Image_Editor(); $WP_Image_Editor->get_quality();
Changelog
Since 4.0.0 | Introduced. |
WP_Image_Editor::get_quality() WP Image Editor::get quality code WP 6.6.2
public function get_quality() { if ( ! $this->quality ) { $this->set_quality(); } return $this->quality; }