wzio_conversion_retry_step
Filter the quality reduction used for one retry after an oversized encode.
Return zero to disable the retry. Values above 99 are treated as 99. The result is floored at Converter::MIN_RETRY_QUALITY whatever the step, so a retry can never ship a visibly degraded copy.
Type: filter
Since: 1.1.0
Source: includes/class-converter.php line 604
Parameters
| Type | Name | Description |
|---|---|---|
int |
$step |
Quality points to subtract. |
string |
$format |
Target format slug. |
string |
$path |
Absolute path to the source image. |
Usage
add_filter( 'wzio_conversion_retry_step', function($step, $format, $path) {
// ...
return $step;
} );