Converting a 1.6mb HEIC image is taking about 5 seconds. Is this normal? And is there any way to speed it up?
My code:
...
const start = window.performance.now();
let image = await heic2any({ blob:file });
const stop = window.performance.now();
console.log('Elapsed time for heic2any: ${(stop - start) / 1000}s');
...
Result in console log:
Elapsed time for heic2any: 5.121s
For the sake of comparison, I tried converting the same image to PNG before uploading, which resulted in a 14.6mb file and it still only took 0.1 seconds for the entire upload.
Converting a 1.6mb HEIC image is taking about 5 seconds. Is this normal? And is there any way to speed it up?
My code: ... const start = window.performance.now(); let image = await heic2any({ blob:file }); const stop = window.performance.now(); console.log('Elapsed time for heic2any: ${(stop - start) / 1000}s'); ...
Result in console log:
Elapsed time for heic2any: 5.121s
For the sake of comparison, I tried converting the same image to PNG before uploading, which resulted in a 14.6mb file and it still only took 0.1 seconds for the entire upload.