Don't transcode incoming attachments
This commit is contained in:
parent
183db8a074
commit
e534dd64f2
3 changed files with 18 additions and 4 deletions
|
@ -458,7 +458,11 @@ exports.processNewAttachment = async (
|
|||
throw new TypeError('context.logger is required');
|
||||
}
|
||||
|
||||
const rotatedAttachment = await Attachment.autoOrientJPEG(attachment);
|
||||
const rotatedAttachment = await Attachment.autoOrientJPEG(
|
||||
attachment,
|
||||
undefined,
|
||||
{ isIncoming: true }
|
||||
);
|
||||
const onDiskAttachment = await Attachment.migrateDataToFileSystem(
|
||||
rotatedAttachment,
|
||||
{ writeNewAttachmentData }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue