[wp-trac] [WordPress Trac] #47873: Introduce handling of "Big Images", Vertical images (was: Introduce handling of "Big Images")

WordPress Trac noreply at wordpress.org
Tue Jun 1 11:28:19 UTC 2021


#47873: Introduce handling of "Big Images", Vertical images
--------------------------+---------------------
 Reporter:  azaozz        |       Owner:  azaozz
     Type:  enhancement   |      Status:  closed
 Priority:  high          |   Milestone:  5.3
Component:  Media         |     Version:
 Severity:  critical      |  Resolution:  fixed
 Keywords:  has-dev-note  |     Focuses:
--------------------------+---------------------
Changes (by yusupba):

 * severity:  normal => critical


Comment:

 Hello

 How do I fix it? which line of code I gotta put as nothing works for me
 atm.
 Thanks

 Replying to [comment:27 azaozz]:
 > Replying to [comment:26 justinahinon]:
 >
 > This is controlled by the `big_image_size_threshold` filter. It sets the
 max-width or max-height (landscape vs. portrait) value (in pixels) above
 which an image will be considered "big".
 >
 > As mentioned before there are several checks possible there apart from
 dimensions: file size, presence of EXIF Orientation !== 1 (meaning the
 image is a photo coming directly from the camera), etc. But thinking it is
 easier to understand and use when it only looks at dimensions, at least
 for now. So currently any image with width or height above 2560px is
 considered big.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47873#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list