WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #49412, comment 3


Ignore:
Timestamp:
02/18/2020 12:12:30 AM (3 months ago)
Author:
johnwatkins0
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49412, comment 3

    v2 v3  
    33The only question I have is whether we think it would be useful to have the file size for all intermediate image sizes as well as the full-sized image, or just for the full-sized image?
    44
    5 I think it makes sense to store all of them, since the most of the main reasons for having this data involve comparing filesizes -- e.g., when looping through images to find the largest one under a limit.
     5I think it makes sense to store all of them, since the main reasons I can think of for having this data involve comparing filesizes -- e.g., when looping through images to find the largest one under a limit.
    66
    77The drawbacks to storing all are (1) more filesize calls at the time an image is uploaded, and (2) inflated metadata.