PHP | Imagick getCompressionQuality() Function Last Updated : 08 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::getCompressionQuality() function is an inbuilt function in PHP which is used to get the object compression quality. Syntax: int Imagick::getCompressionQuality( void ) Parameters: This function does not accept any parameters. Return Value: This function returns an integer value on success. Below programs illustrate the Imagick::getCompressionQuality() function in PHP: Program 1: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Get the Compression quality $compressionQuality = $imagick->getCompressionQuality(); echo $compressionQuality; ?> Output: 0 Program 2: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Set the Compression quality $imagick->setCompressionQuality(50); // Get the Compression quality $compressionQuality = $imagick->getCompressionQuality(); echo $compressionQuality; ?> Output: 50 Reference: https://www.php.net/manual/en/imagick.getcompressionquality.php Comment More infoAdvertise with us Next Article PHP | Imagick getResourceLimit() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick getImageCompressionQuality() Function The Imagick::getImageCompressionQuality() function is an inbuilt function in PHP that is employed to induce the present image's compression quality. Syntax: int Imagick::getImageCompressionQuality( void ) Parameters: This function does not accept any parameters. Return Value: This function returns a 1 min read PHP | Imagick getCompression() Function The Imagick::getCompression() function is an inbuilt function in PHP which is used to get the object compression type. Syntax: int Imagick::getCompression( void ) Parameters: This function does not accept any parameters. Return Value: This function returns an integer value on success. Below programs 1 min read PHP | Imagick getImageCompression() Function The Imagick::getImageCompression() function is an inbuilt function in PHP which is used to get the current image's compression type. Syntax: int Imagick::getImageCompression( void ) Parameters: This function doesn't accepts any parameter. Return Value: This function returns an integer value which co 1 min read PHP | Imagick getOption() Function The Imagick::getOption() function is an inbuilt function in PHP which is used to get a value associated with the specified key. Syntax: string Imagick::getOption( string $key ) Parameters: This function accepts a single parameter $key which holds the name of option. Return Value: This function retur 1 min read PHP | Imagick getResourceLimit() Function The Imagick::getResourceLimit() function is an inbuilt function in PHP which is used to get the specified resource limit. Syntax: int Imagick::getResourceLimit( int $type ) Parameters: This function accepts a single parameter $type which holds an integer value corresponding to one of RESOURCETYPE co 1 min read PHP | Imagick getCopyright() Function The Imagick::getCopyright() function is an inbuilt function in PHP which is used to returns the current ImageMagick API copyright which is used as a string. Syntax: string Imagick::getCopyright( void ) Parameter: This function does not accept any parameter. Return Value: This function returns a stri 1 min read Like