oomskaap
Member
Posted 1 year ago #
I have an image. Lets say its pot.jpg
In my uploads folder i see
pot.jpg 166x166
pot.jpg 300x300
pot.jpg 700x700
etc. I prefer not to have all this unnecessary images filling up my disk space. I initially thought it only takes the first image of a post and creates a thumbnail. Not duplicates in different sizes.
All i want is a simple 166x166 thumbnail. Not 1 petabytes of images i don't use. Anyone know of a way to stop this?
http://wordpress.org/extend/plugins/auto-post-thumbnail/
oomskaap
Member
Posted 1 year ago #
Turns out its a wordpress thumbnail feature that automatically generates the additional size images, which you may not need. I had to use a new function to disable that.
lization1
Member
Posted 9 months ago #
Can you tell me how you did that? What function did you use? Thanks
PinkishHue
Member
Posted 7 months ago #
This info should be helpful to you:
http://wordpress.stackexchange.com/questions/7724/how-can-i-stop-wp-media-uploader-from-creating-duplicates-of-my-uploaded-images
QUOTE:
I believe the following should stop thumbnails from being created. If you're wanting to remove some then and unset the $size[{size}]. Following sizes are there "thumbnail","medium","large","post-thumbnail".
add_filter('intermediate_image_sizes_advanced','stop_thumbs');
function stop_thumbs($sizes){
return array();
}
or this plugin: http://wordpress.org/extend/plugins/additional-image-sizes-zui/