image_max_bit_depth

image_max_bit_depth

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('image_max_bit_depth') is found 1 times:

  • /wp-includes/class-wp-image-editor-imagick.php line 552
    				 *
    				 * @param int $max_depth   The maximum bit depth. Default is the input depth.
    				 * @param int $image_depth The bit depth of the original image.
    				 */
    				$max_depth = apply_filters( 'image_max_bit_depth', $this->image->getImageDepth(), $this->image->getImageDepth() );
    				$this->image->setImageDepth( $max_depth );
    			}
    		} catch ( Exception $e ) {
    			return new WP_Error( 'image_resize_error', $e->getMessage() );
    		}
    	}