summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
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);