ImageResizer library for android - java

I'm developing an android application that needs to pick an image from gallery or camera and put it on MainActivity. Also, i want the user to can resize and move this image in MainActivity.
Is there any library to do that?

Hi you can use for image download,resizing and Scaling
Glide Or Picasso

Related

Does anyone know how to get gif images working in android app?

I am developing social media app in which I already coded the logic to take image from my phone gallery but when I retrieve gif image from gallery it doesn't show me any animation of that gif image, it just shows the still image and I have post feature also but there also it doesn't show me animation of gif image, so if anyone know how to get the gif image working on android app then please help me.
The logic to retrieve image from gallery is:
this is a onClick function when i click on camera icon it take me back to gallery.
Photo.launch("image/*");
before this i created the global variable for photo and then i stored the image in the firebase database using registerForActivityResult
I want to know how to get the gif image animation working after I retrieve them from gallery.

Image view cropped to certain shape

I am creating a form of social media app in which i will be loading in images into android studios from a web hosting server and displaying them in an imageview I want to crop the images to a specific Shape, how would I go about this?
You can use Glide and an image transformation library like this

Choose a Image from Gallery and send to another Activity

So I have an app and in this app in the first activity you choose a image from the gallery or take a photo with the camera.
Then there are a few Activitys between the Activity I needed the picture. So how can I send this image choosen in the first Activity to the activity i need it in? I thought I can make it like these putExtra() Method but I was reading that I costs a lot of memory to send bitmaps to another Activity.
My Goal is to edit this Image as a bitmap in the last activity!
So who got some solutions how i can fix this Problem?! Any Ideas? Thank you!
I use Library called sandriosCamera, it is very costumizable and works in that it less than android 5.0 too (So use CameraApi and CameraApi2). It includes recent image in gallery picker and too shows a preview of the image doing a matrix (Rotate) when the image has an incorrect orientation.
Read this in android arsenal and look the github for the library code https://android-arsenal.com/details/1/4962
Then I pass with a putExtra() the image path (because of the image is temporal and then I need to getExtra() of the intent to have the path of the image in my SendActivity.
Hope it helps with all your problems.
PD: I recommend to download the master.zip and not to import as a library with gradle, because you can costumize if you want (But then you need to fix problems). Before of import to the gradle or manual I recommend too to update all your android tools, max version, etc.

How to set image placeholder like Instagram

I heard Instagram uses the Picasso library for loading images, I was wondering if anyone can point how i can implement the image loading placeholder like Instagram, where a progress bar loads, in my app as i also use the Picasso library. Thanks.
Did you try Glide? It's very easy.
Glide.with(this).load("url")
.placeholder(R.drawable.xxx)
.into(imageView);

Android Application how to save Imageview in gallery

I am developing an android app. This app can drag&drop image to an image.My problem is how will I save the Image that I show in the imageview? In
here i used 2 imageview.
Usually you already have image that you show as file or in-memory model.
That would make this question not dependent to Android IamgeView.

Categories