summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-03 14:07:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-10-03 14:22:34 +0200
commit21ed4d5845fb5b2801639834ad7e9523eb9cadc2 (patch)
tree06369cc779ba8de045c6302f490a107c8b22e971 /application/controllers
parentc3b75b7edba5c56cd4dab24a323167b23814c6bc (diff)
Support EXIF orientation in colorbox
This also reindents colorbox.css. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 57e9d4d1d..a9c1ef12a 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -168,6 +168,7 @@ class File extends MY_Controller {
case "image/png":
case "image/gif":
$filedata["tooltip"] = $this->_tooltip_for_image($filedata);
+ $filedata["orientation"] = libraries\Image::get_exif_orientation($file);
$this->output_cache->add_merge(
array("items" => array($filedata)),
'file/fragments/thumbnail'
@@ -553,6 +554,7 @@ class File extends MY_Controller {
continue;
}
$query[$key]["tooltip"] = $this->_tooltip_for_image($item);
+ $query[$key]["orientation"] = libraries\Image::get_exif_orientation($this->mfile->file($item["hash"]));
}
$this->data["items"] = $query;