[wp-trac] [WordPress Trac] #47873: Introduce handling of "Big Images"

WordPress Trac noreply at wordpress.org
Tue Aug 27 06:52:57 UTC 2019


#47873: Introduce handling of "Big Images"
-------------------------+---------------------
 Reporter:  azaozz       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  high         |   Milestone:  5.3
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------

Comment (by azaozz):

 In 47873.diff:
 - Determine if an image is "BIG" by using a (filterable) threshold. If it
 is, scale it to the threshold value (either width or height) and use it as
 the "full-size" image.
 - Add (helper) functions for retrieving the path and URL to originally
 uploaded images.

 TBD:
 - Currently a string `-scaled` is added to the new full-size image's file
 name. Alternatively the `{width}x{height}` can be used as any other
 resized image, or perhaps a short hash? Any "for" or "against" on this? :)
 - The default BIG image threshold is set to 2560px. This produces JPEGs
 (photos) of approximately 850KB. That seems like good "biggest" image
 size, by dimensions and by file size. Would another default be more
 appropriate?
 - The original images are used when creating other sub-sizes later on, and
 so the users can download them if needed. Perhaps can add a helper
 function to select them or delete them but thinking it would be better if
 there is no UI by default for that.

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


More information about the wp-trac mailing list