The attachment metadata stored for the image is:
Array
(
[width] => 558
[height] => 771
[hwstring_small] => height="62" width="128"
[file] => 2012/02/logo2.png
[sizes] => Array
(
[thumbnail] => Array
(
[file] => file_name.png
[width] => 150
[height] => 150
)
[medium] => Array
(
[file] => logo2-300x145.png
[width] => 300
[height] => 145
)
)
[image_meta] => Array
(
[aperture] => 0
[credit] =>
[camera] =>
=>
[created_timestamp] => 0
[copyright] =>
[focal_length] => 0
[iso] => 0
[shutter_speed] => 0
Getting Details Of Uploaded Image =>
)
)
If the image is attached to the post you can use get_children():
$id = intval( $post->ID ); //The ID of the post attached to.
$attachments = get_children( array(
'post_parent' => $id,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order'
) );
foreach ( $attachment as $id => $attachment ) {
$caption = $attachment['image_meta']->caption;
}