WebComponent handling image uploads - supports scaling and cropping
See: https://wex.fi/wx/wx-image.html
Download latest release and use it.
<script src="js/wx.image.min.js"></script>
<form method="post" enctype="multipart/form-data">
<p>
<wx-image name="image" width="320" height="320"></wx-image>
</p>
<button type="submit">Test</button>
</form>
<script src="js/wx.image.min.js"></script>action: If given, component will use Fetch API to POST image on saving- Otherwise a
textareawith given name will be populated with Base64 Data URL
- Otherwise a
src: Default imagename: Name for input.width: Target width for imageheight: Target height for image
MIT