WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36477, comment 11


Ignore:
Timestamp:
05/31/2016 03:09:56 AM (4 years ago)
Author:
nosilver4u
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36477, comment 11

    initial v1  
    33
    44The unfun side-effect of that is all the I.O. plugins need to make sure to update that information in the metadata after optimization as well. And I don't know that you need to use the Imagick method to get the file size, do you? Wouldn't a quick call to filesize() be sufficient after the resizes has been saved?
     5Also, filesize() would be "editor-agnostic" since you have the potential for GD, Imagick, maybe even Gmagick or others...