filtrod 6.8.0
image_max_bit_depth
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$max_depth | int | The maximum bit depth. Default is the input depth. |
$image_depth | int | The bit depth of the original image. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_max_bit_depth', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_max_bit_depth', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii