Closed jimneff440 closed 1 year ago
I had this issue but found out that I was creating the blob in the wrong way. I was doing a
reader.onload = function(e) { const blob = new Blob([e.target.result]) img.src = heic2any({blob}) }
when what I needed to do was
fetch(e.target.result)
.then((res) => res.blob())
.then((blob) => heic2any({
blob
})).then((conversionResult) => {
var url = URL.createObjectURL(conversionResult);
img.src = url;
})
Solved in the latest version.
Here is a sample file Link for file