From 103bd8e8d22fed0cb2795ba28fe2e5acbfc4c744 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 22:45:30 +0000 Subject: Add the original item height and width to the item table --- core/helpers/core_installer.php | 2 ++ core/helpers/photo.php | 2 ++ 2 files changed, 4 insertions(+) (limited to 'core/helpers') diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index d0162b9b..e0e4f7d9 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -50,6 +50,8 @@ class core_installer { `right` int(9) NOT NULL, `parent_id` int(9) NOT NULL, `level` int(9) NOT NULL, + `width` int(9) default NULL, + `height` int(9) default NULL, `thumbnail_width` int(9) default NULL, `thumbnail_height` int(9) default NULL, `resize_width` int(9) default NULL, diff --git a/core/helpers/photo.php b/core/helpers/photo.php index cd02696d..958e432a 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -56,6 +56,8 @@ class Photo_Core { $photo->description = $description; $photo->name = $name; $photo->owner_id = $owner_id; + $photo->width = $image_info[0]; + $photo->height = $image_info[1]; $photo->mime_type = empty($image_info['mime']) ? "application/unknown" : $image_info['mime']; // Randomize the name if there's a conflict -- cgit v1.2.3