Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

Can't save the cropped image

Open ghost opened this issue 10 years ago • 8 comments

Hi

After cutting the image, how can I save this image?

Thanks, Hadas

ghost avatar Jun 21 '16 07:06 ghost

Even I am getting this problem...

faizsameerahmed96 avatar Jun 21 '16 16:06 faizsameerahmed96

@faizsameerahmed96 @hgelb paste your code

altaf2892 avatar Jun 22 '16 04:06 altaf2892

@altaf2892 it's according to your code (Android-Image-Cropper)

ghost avatar Jun 22 '16 05:06 ghost

@hgelb i m able to save so it will be more specific if u show your implementation.

altaf2892 avatar Jun 22 '16 05:06 altaf2892

@altaf2892 I downloaded your code, but I didn't see how can I save the cropped image. can you please share me an example code for this issue please? or to direct me to the relevant class?

ghost avatar Jun 22 '16 05:06 ghost

@altaf2892 please see in CropImage.startPickImageActivity method. how can I get the cropped image and save it to gallery layout (in this activity, like in the camera)?

ghost avatar Jun 22 '16 13:06 ghost

I don't know what do you mean by "save" so..

  1. Picking image from camera/gallery doesn't "save" it anywhere, it makes it available for the code to do whatever you want.
  2. Saving an image "Gallery" is not related to the functionality of this library, never had to do it so you will have to google it as I would have to.

thx @altaf2892 for trying to help.

ArthurHub avatar Jun 24 '16 12:06 ArthurHub

@hgelb as @ArthurHub said not functionality ..but to get cropped image u can use getCroppedImage() method and can save it wherever u want(google how to create folder and save image to it)

altaf2892 avatar Jun 27 '16 07:06 altaf2892