Forked from nosilver4u/easyio-skip-gif-resizing.php
Created
December 15, 2022 21:13
-
-
Save frankjdelgado/868971faaec5cb399a956ba08c323927 to your computer and use it in GitHub Desktop.
Prevent resizing of GIF images by Easy IO
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: Easy IO GIF Skipper | |
Version: 1.0.0 | |
*/ | |
add_filter( 'exactdn_pre_args', 'easyio_skip_gif_resizing', 10, 2 ); | |
function easyio_skip_gif_resizing( $args, $image_url ) { | |
if ( strpos( $image_url, '.gif' ) ) { | |
return array(); | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment