js-image-orientation

原理参考链接: https://www.jianshu.com/p/eb855b580780 还有其他博客等

Usage no npm install needed!

<script type="module">
  import jsImageOrientation from 'https://cdn.skypack.dev/js-image-orientation';
</script>