Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save frankjdelgado/868971faaec5cb399a956ba08c323927 to your computer and use it in GitHub Desktop.
Save frankjdelgado/868971faaec5cb399a956ba08c323927 to your computer and use it in GitHub Desktop.
Prevent resizing of GIF images by Easy IO
<?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