383 | | $this->image->unsharpMaskImage( 0.25, 0.25, 8, 0.065 ); |
| 383 | /** |
| 384 | * Filters the unsharp mask radius, sigma, amount and threshold values used when resizing JPEG images. |
| 385 | * |
| 386 | * @since 6.2.0 |
| 387 | * |
| 388 | * @param array $unsharp_mask_values { |
| 389 | * An array of unsharp mask values. |
| 390 | * |
| 391 | * @type float $radius The radius of the unsharp mask. |
| 392 | * @type float $sigma The standard deviation of the unsharp mask. |
| 393 | * @type int $amount The amount of the unsharp mask. |
| 394 | * @type float $threshold The threshold of the unsharp mask. |
| 395 | * } |
| 396 | */ |
| 397 | $unsharp_mask_values = apply_filters( 'image_editor_unsharp_mask_filter', array( 0.25, 0.25, 8, 0.065 ) ); |
| 398 | $this->image->unsharpMaskImage( $unsharp_mask_values[0], $unsharp_mask_values[1], $unsharp_mask_values[2], $unsharp_mask_values[3] ); |