WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to reduce the image size of WordPress rss feeds parse to feedburner?

Meaning to say I still want to retain the large image size on the original post page but only display the thumbnail or medium sized image when subscribers are reading it via feedburner.

share|improve this question

If we're talking about thumbnails then yeah, but if you're talking about images inserted in your post then probably not that easy. You'd have to hook to the_content and see if the current view is the RSS view, then run a regexp for images and possibly swap the sizes. WordPress has a naming convention for different registered (add_image_size) sizes so you shouldn't have much trouble there.

share|improve this answer

It's very possible, but quite hard to accomplish reliably for all cases (I was working on a plugin for client to do this and more, but sadly the project was never completed).

But if you need this for specific blog that you have control over - then task can be simplified with some constrains - mainly limiting processing to attachments only.

If so:

  • filter the_content_rss, extract all images with regexp;
  • determine attachments IDs for images, see this question and my answer there for some helpful code;
  • retrieve attachment img tag in smaller size and replace currently used version with it.
share|improve this answer

I wrote a plugin that does this: http://wordpress.org/plugins/rss-image-resize/

Thanks, @Rarst for getting me on the right path to do this!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.