summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 02:35:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 02:35:42 +0000
commite474991d13f41a56e85b4966e156973d33833e6c (patch)
tree690e3e2b9b2c009153d8d319ba8e4a15de6499c9 /lib/ui.lib.php
parentc9ccb05a40c08aadc2defeaf48e84032ae5c0a0c (diff)
downloadampache-e474991d13f41a56e85b4966e156973d33833e6c.tar.gz
ampache-e474991d13f41a56e85b4966e156973d33833e6c.tar.bz2
ampache-e474991d13f41a56e85b4966e156973d33833e6c.zip
Resolve #401 new database update, reset album thumbs and use resized art...
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 6ee09789..1fd49d1f 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -235,9 +235,8 @@ function img_resize($image,$size,$type,$album_id) {
$width = imagesx($src);
$height = imagesy($src);
- // Make it the largest always
- $new_w = '275';
- $new_h = '275';
+ $new_w = $size['width'];
+ $new_h = $size['height'];
$img = imagecreatetruecolor($new_w,$new_h);