summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-13 04:12:40 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-13 04:12:40 +0000
commit7b7bf37e673d184556c114d6083b2d7699ab00d3 (patch)
tree1c2798632531fbfd9095e9fefd5d1fcdc16db41c
parentec5b8dabed64845e8390856eea0a9392c67fad2a (diff)
Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize method pick the right aspect ratio
-rw-r--r--core/helpers/photo.php4
1 files changed, 2 insertions, 2 deletions
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);