using
$img = new Imagick();
$img->readImage( $local_da_imagem );
print_r( $img->getImageCompressionQuality() );
PHP - Manual: Imagick::getImageCompressionQuality
2024-12-21
(PECL imagick 2 >= 2.2.2, PECL imagick 3)
Imagick::getImageCompressionQuality — Gets the current image's compression quality
Gets the current image's compression quality
此函数没有参数。
Returns integer describing the images compression quality
官方地址:https://www.php.net/manual/en/imagick.getimagecompressionquality.php