@Override
        protected int getSampleSize(int inWidth, int inHeight, int outWidth, int outHeight) {
            return Math.min(inHeight / outHeight, inWidth / outWidth);
        }
Load and scale the image uniformly (maintaining the image's aspect ratio) so that the smallest edge of the
image will be between 1x and 2x the requested size. The larger edge has no maximum size.
core/src/main/java/com/bumptech/glide/load/resource/bitmap/Downsampler.java