Automatically resize post pictures 

First, note that this code use TimThumb to resize pictures. This recipe explain how to install TimThumb on your WordPress blog.

Let’s start by creating the shortcode. Just paste the code below into your functions.php file.

function imageresizer( $atts, $content = null ) {
	return '<img src="/timthumb/timthumb.php?src='.$content.'&w=590" alt="" />';
}

add_shortcode('img', 'imageresizer');

Then, you can use the following syntax to add an automatically resized image to your blog post:

[img]http://www.yoursite.com/yourimage.jpg[/img]