From 96968b41813498a6fe5dd01142126333454f6eda Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 15 Dec 2009 21:04:19 -0800 Subject: Include the thumb, resize and fullsize sizes (height & width) in the resource contents returned via the rest interface. --- modules/gallery/helpers/gallery_rest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/gallery/helpers/gallery_rest.php b/modules/gallery/helpers/gallery_rest.php index 865099af..d3e2beba 100644 --- a/modules/gallery/helpers/gallery_rest.php +++ b/modules/gallery/helpers/gallery_rest.php @@ -36,8 +36,14 @@ class gallery_rest_Core { "path" => $item->relative_url(), "title" => $item->title, "thumb_url" => $item->thumb_url(true), + "thumb_size" => array("height" => $item->thumb_height, + "width" => $item->thumb_width), "resize_url" => $item->resize_url(true), + "resize_size" => array("height" => (int)$item->resize_height, + "width" => (int)$item->resize_width), "url" => $item->file_url(true), + "size" => array("height" => $item->height, + "width" => $item->width), "description" => $item->description, "internet_address" => $item->slug); -- cgit v1.2.3