van-image

images processing

Usage no npm install needed!

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

README

image

对图片进行处理,比如旋转、压缩等。

API

  • preload: 图片预加载
  • compress: 压缩图片
  • fixOrientation: 把图片方向扭正