alexcorvi / heic2any

Converting HEIF/HEIF image formats to PNG/GIF/JPEG in the browser
https://alexcorvi.github.io/heic2any/
MIT License
626 stars 82 forks source link

Any plans of an ECMAscript version of heic2any? #17

Open marie-dk opened 3 years ago

marie-dk commented 3 years ago

We are using heic2any in our Angular 11 project, and we love it since it solved the issues we had with images uploaded from iOS.

But using commonJS can raise some drawbacks that we would like to avoid. So I am wondering if you have any plans of creating an ECMAscript version of heic2any... e.g. heic2any-es?

This is the warning I get when compiling the Angular project:

Warning: /home/xyz/myApp/src/app/_components/message-composer/message-composer.component.ts depends on 'heic2any'. 
CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

I know this warning is not the end of the world, but I like to keep things clean :-)