Description:

In this snipped Kevin Chard shows how to give a flickr style to image, and show all images size as link.

This snippet have 2 parts; the first needs to be pasted on the function.php file of your theme; the second to attachment.php file of your template.

The Code:

Function.php

function my_get_image_size_links() {
	if ( !wp_attachment_is_image( get_the_ID() ) )
		return;
	$links = array();
	$sizes = get_intermediate_image_sizes();
	$sizes[] = 'full';
	foreach ( $sizes as $size ) {
		$image = wp_get_attachment_image_src( get_the_ID(), $size );
		if ( !empty( $image ) && ( true == $image[3] || 'full' == $size ) )
			$links[] = "<a class='image-size-link' href='{$image[0]}'>{$image[1]} &times; {$image[2]}</a>";
	}
	return join( ' <span class="sep">/</span> ', $links );
}

Attachment.php

<?php if ( wp_attachment_is_image( get_the_ID() ) ) { ?>
	<div class="image-meta">
		<?php printf( __( 'Sizes: %s', 'example-textdomain' ), my_get_image_size_links() ); ?>
	</div>
<?php } ?>