Wordpress: disabled thumbnails, still multiple images per upload on server

by 4 comments
I don't want wordpress to create thumbnails of the images I upload. I only want the original image on my server.

I added this to my functions.php

Code:
function wplift_remove_image_sizes( $sizes) {
        unset( $sizes['thumbnail']);
        unset( $sizes['medium']);
        unset( $sizes['large']);

        return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'wplift_remove_image_sizes');
And this fixed the issue of having 4 copies of my image on the server. But there still is one copy left and I can't seem to get rid of it.
When I upload an image, a second copy in a different size is created.
I have disabled all my plugins and tried a different theme, but can't seem to find what is creating this second image.

Any thoughts?
#programming #disabled #multiple #thumbnails #wordpress
  • Profile picture of the author mariya20
    you have to remove it from the database i think.. i had semilar problem with one of my websites...
  • Profile picture of the author KingRoyal
    It also could be theme related.
  • Profile picture of the author belgianguy
    Yes, it was theme related. I tried three themes and apparently they all created an extra copy of uploaded images
    I fixed it with a fourth theme :-)
    • Profile picture of the author workoutstuff1
      Originally Posted by belgianguy View Post

      Yes, it was theme related. I tried three themes and apparently they all created an extra copy of uploaded images
      I fixed it with a fourth theme :-)
      Way to go! But I do wonder if there is a plug-in that could have done what you were needing to do.

Next Topics on Trending Feed