´.heif` and `.heic` support
How can I handle ios images (
.heif
and .heic
) smoothly? I would prefer a comple client-side conversion and compression. Since these file formats are not supported on non-ios browsers, I must convert them.
Goal: User can upload these image formats, the browser converts them to .jpg
, then uploads the JPG-file.
I came across https://www.npmjs.com/package/heic2any and https://www.npmjs.com/package/libheif-js but I don't know if they really are the best choice.
Since this seems to be a surprisingly common problem (many people have iphones...), I wonder why there is no common standard?
FYI my frontend uses react-dropzone
and browser-image-compression
on the browser before uploading to UploadThing.npm
heic2any
Converting HEIC/HEIF to PNG/JPEG/GIF in the browser. Latest version: 0.0.4, last published: 2 years ago. Start using heic2any in your project by running
npm i heic2any
. There are 53 other projects in the npm registry using heic2any.npm
libheif-js
Emscripten distribution of libheif for Node.JS and the browser. Latest version: 1.18.2, last published: 5 months ago. Start using libheif-js in your project by running
npm i libheif-js
. There are 10 other projects in the npm registry using libheif-js.0 Replies