From e474991d13f41a56e85b4966e156973d33833e6c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 1 Mar 2009 02:35:42 +0000 Subject: Resolve #401 new database update, reset album thumbs and use resized art... --- lib/ui.lib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/ui.lib.php') 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); -- cgit