Save Edited Image

1
Hi, I'm developing a custom widget which supports functions like rotation, cropping, etc... I am able to render the original uploaded image and apply photo editing functions I implemented. However, I'm not quite sure how to have it saved when I click on "Save" button, for instance. Everything else seems to be saved, but the edited image. Any idea? Thanks.
asked
1 answers
0

To save an image you'd have to call the Core.storeImageDocumentContent method from a Java action with the image stream you want to save. I don't know enough about widgets/javascript to know how to achieve this from your client's browser though.

answered