使用 WP 3.5 的原生图像大小调整。
见 http://matthewruddy.github.io/Wordpress-Timthumb-alternative/
$url = 'http://yourwordpressdomain.com/wp-content/uploads/01/image1.png';// Required
$width = 300; // Optional. Defaults to '150'
$height = 200; // Optional. Defaults to '150'
$crop = true; // Optional. Defaults to 'true'
$retina = false; // Optional. Defaults to 'false'
// Call the resizing function (returns an array)
$image = matthewruddy_image_resize( $url, $width, $height, $crop, $retina );
// Outputs resized image URL, http://yourwordpressdomain.com/wp-content/uploads/01/image1-300x200.png
echo $image['url'];