How to store cropped version of the image?
When you crop an image, the widget uploads an original image and you receive a CDN URL with crop operation applied. If you want to save cropped image instead you'd need to turn off "auto store" option in your project settings, in this case, all uploaded files will be removed after 24 hours. When you receive a CDN URL with crop operation you'd need to send REST API request (POST /files/) to store this file and set received CDN URL as a source:
curl -X POST \ -H "Authorization: Uploadcare.Simple demopublickey:demoprivatekey" \ -d "source=https://ucarecdn.com/3a75edda-e631-4b62-96fd-06fbe3ce534a/-/crop/168x137/30,11/-/preview/" \ -d "store=true" \ "https://api.uploadcare.com/files/"
Note that you'd need to provide your API keys instead of demo keys and in the response, you get a new CDN URL.
A cropped image is saved, the original image will be removed after 24 hours.