Filters the maximum bit depth of resized images. This filter only applies when resizing using the Imagick editor since GD does not support getting or setting bit depth. Use this to adjust the maximum bit depth of resized images.
$this->image->getImageDepth(
Sortie :
@param int $max_depth The maximum bit depth. Default is the input depth. @param int $image_depth The bit depth of the original image.
// Modifier la valeur avec le filtre 'image_max_bit_depth'
add_filter('image_max_bit_depth', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($this->image->getImageDepth() {
// Modifier la valeur
return $this->image->getImageDepth(;
}
Chargement des actualités...