Transcode heic/heif images

This commit is contained in:
Josh Perez 2021-08-09 16:06:21 -04:00 committed by GitHub
parent 440fb69efc
commit 9078919545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 409 additions and 100 deletions

View file

@ -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),
}
);
});