From 7b7bf37e673d184556c114d6083b2d7699ab00d3 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 13 Dec 2008 04:12:40 +0000 Subject: Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize method pick the right aspect ratio --- core/helpers/photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index aea568ba..8f204714 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -79,8 +79,8 @@ class photo_Core { // @todo: parameterize these dimensions // This saves the photo a second time, which is unfortunate but difficult to avoid. - $result = $photo->set_thumbnail($filename, 200, 140) - ->set_resize($filename, 640, 480) + $result = $photo->set_thumbnail($filename, 200, 200) + ->set_resize($filename, 640, 640) ->save(); module::event("photo_created", $photo); -- cgit v1.2.3