Skip to content

Instantly share code, notes, and snippets.

View frankjdelgado's full-sized avatar

Francisco Delgado frankjdelgado

View GitHub Profile
@nosilver4u
nosilver4u / easyio-skip-gif-resizing.php
Created February 16, 2022 16:20
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();
@frankjdelgado
frankjdelgado / easyio-skip-gif-resizing.php
Created December 15, 2022 21:13 — forked from nosilver4u/easyio-skip-gif-resizing.php
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();