Questions tagged [android-crop]

How to crop an image interactively (manually) on Android

Questions about using of com.android.camera.action.CROP intent, or alternatives.

This intent belongs to AOSP Camera app and is listed at http://www.openintents.org/action/com-android-camera-action-crop, but please read https://commonsware.com/blog/2013/01/23/no-android-does-not-have-crop-intent.html before you decide to use it.

38 questions
1
vote
1 answer

Android: Cropping an image after capture or picking from Gallery

I am developing an application and as a part of that I need to crop an image after capture from camera or after picking it from gallery. I have a navigation drawer in my app and from which user can select an option to view his image (either camera…
1
vote
2 answers

refactor performCrop() method out of activity class

I have a PerformCrop method which works perfectly. I want to move it to my 'util' class so i can call it in other activities. There are complications to this in that it uses intents which return to the calling class. I think this should be no issue…
Fearghal
  • 10,569
  • 17
  • 55
  • 97
0
votes
0 answers

How can I pick image Directly from recycler view instead of gallery or camera to set on wallpaper?

I am developing a wallpaper app with pixabay and retrofit. I have been trying to select image from the recycler view but I am unable to do so.Referring to the image attached below, when i press customize button i want to crop the image selected and…
0
votes
1 answer

Crop Image getting height and width on the move of cropper

In Cropping Image,it is a requirement that on the move of cropper height and width automatically adjust according to cropper height width. if there is any lib pls suggest me. i tried most of libs but not meet my requirement.
0
votes
0 answers

Android Image Crop: Output x and Output y always 160 px

When I choose a photo from the gallery it always turns 160 pixels in width and height. But the width and height I want is 640. The code I use is below. private void photoChooser(){ Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, …
0
votes
0 answers

put uri in an intent variable,receive it and put in on an imageview

i crop images using this function: private void performCrop(String picUri) { try { //Start Crop Activity Intent cropIntent = new Intent("com.android.camera.action.CROP"); // indicate image type and Uri File f =…
0
votes
0 answers

Android: Unable to cut out the overlay image and the photo within the overlay

I have the following code where you can combine the photo data and the overlay image as one bitmap then save it. The problem is that I dont know how to cropout only the overlay image and the photo image within the overlay image. I dont want to save…
Nancy
  • 129
  • 2
  • 13
0
votes
0 answers

How to Crop a image via finger touch in Android App?

[ORIGINAL] I am working on a project in which i need to create summary of book (combination of images). Summary includes parts of image masked by finger. I found an example for android i.e fingercrop-image-tutorial but it is not what i want. What i…
0
votes
0 answers

android bitmap does not get maximum resolution

I'm currently making an android photography app. In my upload fragment i have a camera intent and a gallery intent, however when i display the image to the image view, the quality of the image lowers. here is my code: public void…
0
votes
1 answer

How do I make downloaded images fit to Image Button?

I am using the Android-Image-Cropper library. It seems to work fine with pictures taken with the camera itself, but when I select images from the gallery that were downloaded from the internet and crop them, the image does not completely cover the…
0
votes
0 answers

SecurityException when app try to use Google Photos to crop taken photo

My app successfully take photo from camera then redirect user to a pop-up list which contains available apps that can crop the photo as below: Intent intent = new…
charman
  • 123
  • 6
0
votes
0 answers

How to crop the image from the TextureView

I want to crop the finger which is shows in the white region (i.e., a view). placed above the TextureView using framelayout. I've tried capturing the view and converting into bitmap but i doesn't help. Is there any solution available for this?…
0
votes
1 answer

Crop functionality is working on marshmallow or above but do not work below marshmallow

Image is crop and see successfully in List in marshmallow and above but not working below marshmallow. I think if we pick google photo for crop than it is working in other scenario its nont working. Also in my situation runtime permission is already…
0
votes
1 answer

Crop Image Chosed from Gallery for Android API 21 and above

My application sends an intent for getting an image from the gallery and then I want to crop the image as per the needs. Now, I know there are lots of questions already asked on this topic, but they are old and they all refer to the historical…
Arunava
  • 353
  • 1
  • 4
  • 13
0
votes
1 answer

Android: Crop image and Displaying it on ImageView

I want to select a file from Gallery and then trying to crop it the problem i am facing is: After cropping the image and on activity result i am getting error because i am receiving null, Snippet of Activity On Result @Override protected void…
Kumail Hussain
  • 869
  • 2
  • 26
  • 49