Stopping WordPress from Auto Generating Image Files for Sizes

This is a problematic idea. WordPress do not have any strong connectivity between an image (or any other uploaded file) and any content (post). This means that in theory you can not make a decisions like if it is an image on page do X as nothing ensures you that the image will not be used somewhere else as well.

This is a wordpress design decision, and frankly, as much as I personally dislike it, there is no point in fighting it as you will have to constantly fight the side effect of it (image regeneration for example) and except for cluttering the upload directories it does not do much damage. The only real solution is wordpress switching to image generation on the fly which is unlikely to happen any time soon.

Leave a Comment