[wp-trac] [WordPress Trac] #57459: Reexamine the usefulness of file size meta for images
WordPress Trac
noreply at wordpress.org
Fri Jan 13 21:41:10 UTC 2023
#57459: Reexamine the usefulness of file size meta for images
-------------------------+----------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+----------------------------
Storing of the file size for images was added in #49412 without it being
used in core and with pretty marginal use case(s) expectations:
Storing file size means, developers will not have to resort to doing
filesize function calls, that can be time consuming on assets on offloaded
to services like Amazon’s S3.
#49412 also mentions some serious drawbacks:
- Image filesize meta is missing for all previously uploaded images.
- It is unreliable as seemingly many hosting companies optimize images
directly on the disc, without running WP, hence the cached file size
becomes outdated/wrong soon after images are uploaded.
- Many sites replace JPEGs with WebPs on the fly, making the stored file
size unusable.
In that terms the cached image file size seems too unreliable to even
fulfill the expected use in plugins. Furthermore not being useful in core,
and the additional overhead when uploading images seems to make it a poor
addition.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57459>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list