It would be neat to be able to provide an aspect property to the component, so the user can select a portion of the image.
Didn't do much research, but https://github.com/ValentinH/svelte-easy-crop seems to do the right thing and could be tweaked to fit our needs. We probably don't need all the functionality so we could strip down code or take it as an inspiration to create our own cropper.
As for the UX: We'd just display a modal with a confirm/cancel button before we upload+insert the image.
It would be neat to be able to provide an component, so the user can select a portion of the image.
aspect
property to theDidn't do much research, but https://github.com/ValentinH/svelte-easy-crop seems to do the right thing and could be tweaked to fit our needs. We probably don't need all the functionality so we could strip down code or take it as an inspiration to create our own cropper.
As for the UX: We'd just display a modal with a confirm/cancel button before we upload+insert the image.
Usage: