I can get a list of urls for an image like this:
$sizes = array_merge(array('full'),get_intermediate_image_sizes());
foreach ($sizes as $imageSize) {
$image_attributes = wp_get_attachment_image_src( $post->ID , $imageSize );
echo $imageSize . ':<br>' .$image_attributes[0].'<br>';
}
which gives me
full:
http://domain.com/wp-content/_uploads/2014/01/my_image.png
thumbnail:
http://domain.com/wp-content/_uploads/2014/01/my_image-150x150.png
medium:
http://domain.com/wp-content/_uploads/2014/01/my_image-300x116.png
What I want is
full:
/path/to/public_html/wp-content/_uploads/2014/01/my_image.png
thumbnail:
/path/to/public_html/wp-content/_uploads/2014/01/my_image-150x150.png
medium:
/path/to/public_html/wp-content/_uploads/2014/01/my_image-300x116.png