From 523a80eefe0e2858aa1fb2bb9539ec44da502963 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 12 Feb 2018 16:28:06 -0500 Subject: [PATCH] Remove just-in-time image auto-orient for lightbox We can bring this back if our users would like auto-orient for old attachments. --- js/views/attachment_view.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 82c23b192..9c6c02d60 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -205,12 +205,6 @@ this.objectUrl = window.URL.createObjectURL(this.blob); } - if (this.isImage()) { - window.autoOrientImage(this.objectUrl).then(dataURL => { - this.autoOrientedImageDataURL = dataURL; - }); - } - const {blob} = this; const {contentType} = this.model; this.view = new View(this.objectUrl, {blob, contentType}); @@ -279,9 +273,7 @@ } }, render_attributes: function() { - return { - url: this.model.autoOrientedImageDataURL || this.model.objectUrl, - }; + return { url: this.model.objectUrl }; } });