EWWW and WPPP incompatibility / integration
-
Hi,
my plugin WP Performance Pack includes a feature to dynamically create intermediate images on first access. So meta data for intermediate images get created but the files won’t exists then. This causes EWWW IO to delete the intermediate filename ([‘sizes’][‘size’][‘file’]) which breaks the whole thing. I could integrate a workaround (by hooking into wp_update_attachment_metadata and resetting the file names), but I think the better approach would be if EWWW IO wouldn’t delete the file name ( e.g. by adding in commo.php line 1125 an if ( !empty( $optimized_file ) ) ). I guess this check wasn’t necessary yet, as by default those files always exist.
Apart from that issue, I would like to integrate EWWW Support into WPPP, i.e. use EWWW to optimize dynamically created intermediate Images, if available. I already use WP_Image_Editor class so am I correct that I don’t have to alter much (apart from loading EWWW as I use SHORTINIT for dynamic image serving).
–
Bj?rn
- The topic ‘EWWW and WPPP incompatibility / integration’ is closed to new replies.