I'm getting images through an API, except the problem is that all the images are in a fixed size, which leaves large pictures okay since it takes up the whole space, but there are some pictures with small objects, as shown here
I was wondering if there is a way to detect if an image with a transparent background can be resized to only what's shown such as here
The libraries I'm using for this are glide to get the images from a URL and GifImageView to hold the image. Any help would be appreciative.