kekland / croppy

A fully customizable image cropper for Flutter, in Flutter
MIT License
105 stars 30 forks source link

Get address from an image #13

Closed rodrigonepomuceno closed 1 year ago

rodrigonepomuceno commented 1 year ago

How do I take an edited image and send it to my backend? I cropped it, rotated it, etc. How do I get this modified image and send it to my backend? I didn't find how to do this in the package

kekland commented 1 year ago

Hi!

The package was designed specifically to be open-ended (the resulting image is ui.Image), so theoretically developers can do anything with that image (feed it to another different package, consume it in the UI, etc). However, it also makes it a bit less beginner-friendly.

I've just added a documentation on how you can save the contents of the crop result (i.e. the ui.Image object) to a local file in the latest version. You can find the markdown file here: https://github.com/kekland/croppy/blob/1.1.4/doc/saving-images.md

Let me know if it resolves your issues.

rodrigonepomuceno commented 1 year ago

Cool, it's clearer now. Perhaps a suggestion would be to have a "friendly" method to make this save. But your explanation is clear and easy to understand. Thanks for the feedback.

kekland commented 1 year ago

Will think if I can provide a postProcessFn to save the image to a file without having to write one manually.