• I am altering a plugin and I like to edit the uploading part by not saving an image for different dimensions. I only want to store the original file.

    So how can I overwrite the saving of different dimensions (like, filename-…X…)

Viewing 1 replies (of 1 total)
  • Thread Starter DDT

    (@ddt)

    Just setting the Settings > media to 0 will prevent the different sizes.

    But how do I prevent wordpress from generating different dimensions if uploaded from a specific plugin??

    this only works for all

    add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes');
    function filter_image_sizes( $sizes) {
    
        unset( $sizes['thumbnail']);
        unset( $sizes['medium']);
        unset( $sizes['large']);
    
        return $sizes;
    }

    But how can I only use add_filter if the upload comes from a specific plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘How do I overwrite multiple images file dimensions being saved?’ is closed to new replies.