diff options
-rw-r--r-- | core/models/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models/item.php b/core/models/item.php index 3f3db0a7..25b1d7f3 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -160,7 +160,7 @@ class Item_Model extends ORM_MPTT { */ public function set_thumbnail($filename, $width, $height) { Image::factory($filename) - ->resize($width, $height, Image::WIDTH) + ->resize($width, $height, Image::AUTO) ->save($this->thumbnail_path()); $dims = getimagesize($this->thumbnail_path()); @@ -181,7 +181,7 @@ class Item_Model extends ORM_MPTT { */ public function set_resize($filename, $width, $height) { Image::factory($filename) - ->resize($width, $height, Image::WIDTH) + ->resize($width, $height, Image::AUTO) ->save($this->resize_path()); $dims = getimagesize($this->resize_path()); |