Non usare le regular expressions, usa http://simplehtmldom.sourceforge.net/

Codice PHP:
include 'simple_html_dom.php';

$html str_load_html($post->post_content);

foreach( 
$html->find('img') as $image ) {
    
// qui avrai la width in $image->width
    // la height in $image->height
    // la sorgente in $image->src