Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-08 01:33:01 +0400
committerBart Visscher <bartv@thisnet.nl>2012-02-09 00:12:30 +0400
commiteb5de4d4f7b98bb1c258dbb5ed5ecf9c2d39e746 (patch)
tree47ae2ac83a8241730c1070ce582564064c778839 /lib/image.php
parent7c03b612d2c58f9cc02c46c82e137087b1591d07 (diff)
Change gallery thumbnail generation to OC_Image
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index 6de3ed9104d..255d289ea21 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -147,6 +147,10 @@ class OC_Image {
return false;
}
}
+ if (!$this->valid()) {
+ return false;
+ }
+
$retval = false;
switch(self::$imagetype) {
case IMAGETYPE_GIF:
@@ -257,7 +261,7 @@ class OC_Image {
$flip = true;
break;
case 8:
- $rotate = 270;
+ $rotate = 90;
$flip = false;
break;
}