Skip to content

Instantly share code, notes, and snippets.

@nosilver4u
Created January 20, 2023 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nosilver4u/a265246c9f2b409c30ee20600255ab0b to your computer and use it in GitHub Desktop.
Save nosilver4u/a265246c9f2b409c30ee20600255ab0b to your computer and use it in GitHub Desktop.
Force EWWW IO to obey maximum image dimensions regardless of file size.
<?php
/*
Plugin Name: EWWW IO Force Resize
Description: Skips the file size check after resizing the full-size image.
Version: 1.0.0
*/
add_filter( 'ewww_image_optimizer_resize_filesize_ignore', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment