b-crop

b-crop ========================= In browser, cut the image to aimSize.

Usage no npm install needed!

<script type="module">
  import bCrop from 'https://cdn.skypack.dev/b-crop';
</script>

README

b-crop

In browser, cut the image to aimSize.

The short edge of the origin image will be resized to fix the aimSize, while the long edge will be cut off to keep the origin ratio.