Open jonathanrstern opened 6 months ago
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?
@jonathanrstern hey, any updates or work arounds to this issue? It is still open
Here is my convertHeic function:
Here is my convertedFile:
Working beautifully on Chrome. Breaks on Safari --> photo simply displays as a transparent box.
Using NextJS.
@alexcorvi any thoughts?