libheif-js icon indicating copy to clipboard operation
libheif-js copied to clipboard

Is there a way to generate a heic/heif file using this library?

Open Xheldon opened this issue 6 months ago • 0 comments

I am working on a heic/heif compression tool using the Electron tech stack. I want to use libheif-js to compress a buffer read from the hard drive by node:fs to a specified value and then output it to a given path.

I found that the library only has the new libheif.HeifDecoder() method to read files correctly, but it lacks the new libheif.HeifEncoder() method to generate a heic/heif file. Is my understanding correct?

Is there any way to generate a heic/heif file?

Thx!

Xheldon avatar Aug 16 '24 15:08 Xheldon