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

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-24 23:27:49 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-24 23:27:49 +0300
commit352d699b5c7a087e808a44d1912fdcffbb9275fc (patch)
tree948cd58b53a085baa4c03fb453dbf432b05b0893 /preview
parente317f88ca843a56e3f5ad3db1eaafa79ba3fa4c8 (diff)
Only fix previews which are too big
Diffstat (limited to 'preview')
-rw-r--r--preview/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/preview/preview.php b/preview/preview.php
index 20796396..cb5101c7 100644
--- a/preview/preview.php
+++ b/preview/preview.php
@@ -153,7 +153,7 @@ class Preview {
$previewWidth = $previewData->width();
$previewHeight = $previewData->height();
- if ($previewWidth !== $maxWidth || $previewHeight !== $maxHeight) {
+ if ($previewWidth > $maxWidth || $previewHeight > $maxHeight) {
$previewData = $this->fixPreview(
$previewData, $previewWidth, $previewHeight, $maxWidth, $maxHeight, $square
);