Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 02-21-2013, 01:59 AM   #1
HyperActive Warrior
War Room Member
 
belgianguy's Avatar
 
Join Date: Jan 2009
Posts: 332
Thanks: 80
Thanked 40 Times in 36 Posts
Default Wordpress: disabled thumbnails, still multiple images per upload on server

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?
belgianguy is offline   Reply With Quote
Old 02-21-2013, 08:40 AM   #2
Active Warrior
 
Join Date: Nov 2007
Location: , , USA.
Posts: 39
Thanks: 0
Thanked 4 Times in 4 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

you have to remove it from the database i think.. i had semilar problem with one of my websites...

mariya20 is offline   Reply With Quote
Old 02-21-2013, 10:21 AM   #3
The Owner
War Room Member
 
KingMighty's Avatar
 
Join Date: Nov 2012
Posts: 383
Thanks: 59
Thanked 59 Times in 47 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

It also could be theme related.

Dont Forget To Give Thanks If I Helped You!
KingMighty is offline   Reply With Quote
Old 02-21-2013, 12:42 PM   #4
HyperActive Warrior
War Room Member
 
belgianguy's Avatar
 
Join Date: Jan 2009
Posts: 332
Thanks: 80
Thanked 40 Times in 36 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

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 :-)
belgianguy is offline   Reply With Quote
Old 02-21-2013, 03:15 PM   #5
Active Warrior
War Room Member
 
workoutstuff1's Avatar
 
Join Date: Jun 2009
Posts: 97
Blog Entries: 2
Thanks: 90
Thanked 14 Times in 12 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

Quote:
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.

workoutstuff1 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Bookmarks

Tags
disabled, multiple, thumbnails, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 06:09 PM.