-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Here is my convertHeic function:
export async function convertHeic(heicFile: File) {
const heic2any = require("heic2any");
const convertedBlob = await heic2any({ blob: heicFile });
const convertedFile = new File([convertedBlob], `${uuidv4()}.png`, {
type: "image/png",
});
return { convertedBlob, convertedFile };
}
Here is my convertedFile:
convertedFile = {
lastModified: 1702502344687,
name: "23b275b5-b261-4fa2-b240-3c878d9047b8.png",
size: 213143,
type: "image/png",
webkitRelativePath: ""
}
Working beautifully on Chrome. Breaks on Safari --> photo simply displays as a transparent box.
Using NextJS.
@alexcorvi any thoughts?
Metadata
Metadata
Assignees
Labels
No labels