wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



image_max_bit_depth › WordPress Filter Hooks

Seit6.8.0
Veraltetn/v
apply_filters( 'image_max_bit_depth', $this->image->getImageDepth()
Parameter: (2)
  • (int) $max_depth The maximum bit depth. Default is the input depth.
    Erforderlich: Ja
  • (int) $image_depth The bit depth of the original image.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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