diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-07 03:50:47 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-07-07 03:50:47 +0000 |
commit | 2d62be1359e75514157740a308aef696e485a1ee (patch) | |
tree | bab58fd6fafb4c3220d1713da5fd8e5c43ef8c36 /templates/show_album_art.inc.php | |
parent | 1d7e7cfb5be9c65cc18d30926e2d2d9dd6747fbc (diff) | |
download | ampache-2d62be1359e75514157740a308aef696e485a1ee.tar.gz ampache-2d62be1359e75514157740a308aef696e485a1ee.tar.bz2 ampache-2d62be1359e75514157740a308aef696e485a1ee.zip |
add image dimensions on find album art page
Diffstat (limited to 'templates/show_album_art.inc.php')
-rw-r--r-- | templates/show_album_art.inc.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 7e7226bf..71148b88 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.inc.php @@ -33,15 +33,18 @@ while ($i <= $rows) { while ($j < 4) { $key = $i*4+$j; $image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key; + $dimensions = Core::image_dimensions(get_image_from_source($_SESSION['form']['images'][$key])); if (!isset($images[$key])) { echo "<td> </td>\n"; } else { ?> <td align="center"> - <a href="<?php echo $image_url; ?>" target="_blank"> - <img src="<?php echo $image_url; ?>" alt="Album Art" border="0" height="175" width="175" /><br /> - </a> + <a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="Album Art" border="0" height="175" width="175" /></a> + <br /> <p align="center"> - [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo urlencode($_REQUEST['album_id']); ?>">Select</a>] + <?php if (is_array($dimensions)) { ?> + [<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['heigh']); ?>] + <?php } ?> + [<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo intval($_REQUEST['album_id']); ?>">Select</a>] </p> </td> <?php |