better name
This commit is contained in:
parent
532588572f
commit
1c68eba360
|
@ -1,4 +1,4 @@
|
|||
import heicConvert from 'heic-convert';
|
||||
import HEICConvert from 'heic-convert';
|
||||
import { getUint8ArrayView } from 'services/readerService';
|
||||
|
||||
export async function convertHEIC(
|
||||
|
@ -6,7 +6,7 @@ export async function convertHEIC(
|
|||
format: 'JPEG' | 'PNG'
|
||||
): Promise<Blob> {
|
||||
const filedata = await getUint8ArrayView(fileBlob);
|
||||
const result = await heicConvert({ buffer: filedata, format });
|
||||
const result = await HEICConvert({ buffer: filedata, format });
|
||||
const convertedFileData = new Uint8Array(result);
|
||||
const convertedFileBlob = new Blob([convertedFileData]);
|
||||
return convertedFileBlob;
|
||||
|
|
Loading…
Reference in a new issue