Remove just-in-time image auto-orient for lightbox
We can bring this back if our users would like auto-orient for old attachments.
This commit is contained in:
parent
0739feae9c
commit
523a80eefe
|
@ -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 };
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue