include-fragment

back edit

<image-crop> with hidden inputs.

<form action="https://httpbin.org/get" style="max-width: 300px;">
  <image-crop src="https://github.com/github.png" class="d-block border">
    <input type="hidden" data-image-crop-input="x" name="x">
    <input type="hidden" data-image-crop-input="y" name="y">
    <input type="hidden" data-image-crop-input="width" name="width">
    <input type="hidden" data-image-crop-input="height" name="height">
  </image-crop>
  <button type="submit" class="btn btn-primary btn-block mt-2">Crop</button>
</form>