Post Filter
This plugin is a good help for bloggers who want to use external tools or write via wordpress without boring external images relinking/uploading and content cleanup. This plugin cleans posts and caches remote images on the fly.
Compatibility
Tested with Wordpress 2.0 and higher; Requires GD for resizing images on the fly.
Version 1.1: now uses curl to download files, you may specify list of extensions to download.
How it works
If you see interesting content on other site just copy paste it in to your post. When activated, plugin will do the following tasks:
- Download and cache all external images to your wp-content directory so this post will reference them locally and you won’t steal someone else’s bandwidth;
- Optionally you may request to auto resize images (if you blog is narow!) and add them into Wordpress attachments area.
- Optionally you may request to strip all id, style, class attributes so you will not follow other site’s classes and styles.
- Optionally specify extensions to filter (added in version 1.1)
I hope you understand this and now re blogging will be even more easy with this plugin!
Please note that filtering performed even if you blog with external Blog Clients such as BlogJet and Performancing for Firefox.
Setup
- Upload plugin to your wp-plugins directory;
- Go To Plugins Page and activate plugin;
- Go to Options -> Post Filter page and set up plugin options.
Now you may reblog with inline images and filtering easily.
Options Screenshot

More filtering options will be added upon requests.
Very nice plugin and seems to be working very well!
However it seems to only be parsing the contents of the post (the wp_posts table). Is it possible to make a version that will also parse the meta-data (the wp_postmeta table)
The reason I ask is that my users will submit external image URLs through a custom field which is stored in postmeta.
So is there an easy tweak to make the plugin also parse this table?
Thanks,
Andy
i’m sorry for late reply !
Yes it parses only post , i think i can imporve it for parsing meta also. Please watch the notifications about updates!
idea for a wordpress plugin: copy linked images to server…
It’s nice to have services such as Flickr where I can upload an image, then click a button to create an entry on my blog displaying and linking to the image. Unfortunately, there may come a time with I close my Flickr account or Flickr closes up…
Excellent, I was just blogging about my need for such a plugin.
Would it be possible to go back through my previous posts and run the plugin on them? Maybe in the options there could be an “run now on all entries” button. At this point I have a number of images posted through Flickr that need the treatment.
we’ll this is all considerations to next version :)
Unfortunately this does not seem to work with some hosts, such as Dreamhost, who do not allow fopen in their PHP. I am trying to re-write with the CURL lib but so far I am not getting results.
OK, I think I have got this working with CURL. All you need to do is replace the fp_get_remote_file function with the following:
function fp_get_remote_file($url) {
# use CURL library to fetch remote file
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
$results = curl_exec($ch);
curl_close ($ch);
return $results;
}
However, one problem exists, if there is any embedded flash video the plugin will try, unsuccessfully, to transload that also.
curl and extension filtering is added, please check updates!