From 157b139b577a6a89fa734ba4c0ab91e6e80286e4 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 20 May 2014 13:45:14 +0200
Subject: [PATCH] Dont scale up the preview for publicly shared images

---
 apps/files_sharing/js/public.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index ce9a212499..d825ee9de1 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -59,7 +59,8 @@ OCA.Sharing.PublicApp = {
 				x: $(document).width() * window.devicePixelRatio,
 				a: 'true',
 				file: encodeURIComponent(this.initialDir + $('#filename').val()),
-				t: $('#sharingToken').val()
+				t: $('#sharingToken').val(),
+				scalingup: 0
 			};
 
 			var img = $('<img class="publicpreview">');
-- 
GitLab