Created
December 22, 2022 18:01
-
-
Save nosilver4u/d46fe5e7d8ef7397cd12d175a0c39684 to your computer and use it in GitHub Desktop.
Change Imsanity (and EWWW IO) to hard crop instead of scale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Imsanity Hard Crop | |
Description: Enables the Imsanity and EWWW IO cropping filters. | |
Version: 1.0.0 | |
*/ | |
add_filter( 'imsanity_crop_image', '__return_true' ); | |
add_filter( 'ewww_image_optimizer_crop_image', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment