Transcode heic/heif images
This commit is contained in:
parent
440fb69efc
commit
9078919545
30 changed files with 409 additions and 100 deletions
|
@ -6,7 +6,7 @@ import * as sinon from 'sinon';
|
|||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import AbortController from 'abort-controller';
|
||||
import { MIMEType, IMAGE_JPEG } from '../../types/MIME';
|
||||
import { IMAGE_JPEG, stringToMIMEType } from '../../types/MIME';
|
||||
|
||||
import { typedArrayToArrayBuffer } from '../../Crypto';
|
||||
|
||||
|
@ -1155,7 +1155,7 @@ describe('link preview fetching', () => {
|
|||
),
|
||||
{
|
||||
data: typedArrayToArrayBuffer(fixture),
|
||||
contentType: contentType as MIMEType,
|
||||
contentType: stringToMIMEType(contentType),
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue