wpseek.com
WordPress开发者和主题制作者的搜索引擎



image_max_bit_depth › WordPress过滤钩子

Since6.8.0
已弃用n/a
› apply_filters( 'image_max_bit_depth', $this->image->getImageDepth()
参数: (2)
  • () max_depth The maximum bit depth. Default is the input depth.
    Required: Yes
  • () image_depth The bit depth of the original image.
    Required: Yes
定义在:
文档:

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.




源码

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