wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



image_max_bit_depth › Les Filtres WordPress

Depuis6.8.0
Dépréciéen/a
› apply_filters( 'image_max_bit_depth', $this->image->getImageDepth()
Paramètres: (2)
  • () max_depth The maximum bit depth. Default is the input depth.
    Requis: Oui
  • () image_depth The bit depth of the original image.
    Requis: Oui
Défini(e) dans:
Codex:

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.




Source

$max_depth = apply_filters( 'image_max_bit_depth', $this->image->getImageDepth(), $this->image->getImageDepth() );