libheif-js
libheif-js copied to clipboard
Is there a way to generate a heic/heif file using this library?
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!