mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Move blueimp-canvas-to-blob from Bower to npm
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* jshint ignore:start */
|
||||
|
||||
const {autoOrientImage} = require('../auto_orient_image');
|
||||
const dataURLToBlob = require('blueimp-canvas-to-blob');
|
||||
|
||||
// // Fields
|
||||
// {
|
||||
@@ -46,7 +46,7 @@ const autoOrientJPEGs = async attachment => {
|
||||
}
|
||||
|
||||
const dataBlob = arrayBufferToBlob(attachment.data, attachment.contentType);
|
||||
const newDataBlob = dataURLtoBlob(await autoOrientImage(dataBlob));
|
||||
const newDataBlob = dataURLToBlob(await autoOrientImage(dataBlob));
|
||||
const newDataArrayBuffer = await blobToArrayBuffer(newDataBlob);
|
||||
const newAttachment = Object.assign({}, attachment, {
|
||||
data: newDataArrayBuffer,
|
||||
|
||||
Reference in New Issue
Block a user