WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
322 | * Filters whether to strip metadata from images when they're resized. |
323 | * |
324 | * This filter only applies when resizing using the Imagick editor since GD |
325 | * always strips profiles by default. |
326 | * |
327 | * @since 4.5.0 |
328 | * |
329 | * @param bool $strip_meta Whether to strip image metadata during resizing. Default true. |
330 | */ |
331 | if ( apply_filters( 'image_strip_meta', $strip_meta ) ) { |
332 | $this->strip_meta(); // Fail silently if not supported. |
333 | } |
334 |
|
335 | try { |
336 | /* |
337 | * To be more efficient, resample large images to 5x the destination size before resizing |
338 | * whenever the output size is less that 1/3 of the original image size (1/3^2 ~= .111), |
339 | * unless we would be resampling to a scale smaller than 128x128. |
340 | */ |