Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the cropped file to be automatically written to a file #28

Open
vanniktech opened this issue Nov 28, 2024 · 1 comment
Open

Allow the cropped file to be automatically written to a file #28

vanniktech opened this issue Nov 28, 2024 · 1 comment
Labels
feature New features

Comments

@vanniktech
Copy link

It would be really nice if the ImageCropper.cropSrc function were to be extended with a possibility to write the cropped image to the file system. This is kind of the counterpart of #24

Regarding writing a file either kotlinxio or okio could be used. Both are multiplatform. Right now the API is kinda cumbersome. I'm getting a ImageBitmap back from which I need to read all the pixels manually and write it to a file; or am I overseeing something?

@tamimattafi
Copy link
Owner

@vanniktech I agree that the api is limited to Bitmap right now, and it's kinda frustrating. But I believe after #24, we can add more save destinations, since we now have more data sources.

@tamimattafi tamimattafi added the feature New features label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

No branches or pull requests

2 participants