Summery Summery
Filters the “BIG image” threshold value.
Syntax Syntax
Description Description
If the original image width or height is above the threshold, it will be scaled down. The threshold is used as max width and max height. The scaled down image will be used as the largest available size, including the _wp_attached_file
post meta value.
Returning false
from the filter callback will disable the scaling.
Parameters Parameters
- $threshold
-
The threshold value in pixels. Default 2560.
- $imagesize
-
Indexed array of the image width and height in pixels.
- (int) The image width.
- '1'
(int) The image height.
- $file
-
Full path to the uploaded image file.
- $attachment_id
-
Attachment post ID.
Source Source
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |