@Override
    public String getId() {
        return "BitmapEncoder.com.bumptech.glide.load.resource.bitmap";
    }
An {@link ResourceEncoder} that writes {@link Bitmap}s to
{@link OutputStream}s.

<p>
    {@link Bitmap}s that return true from {@link Bitmap#hasAlpha()}} are written
    using {@link Bitmap.CompressFormat#PNG} to preserve alpha and all other bitmaps are written
    using {@link Bitmap.CompressFormat#JPEG}.
</p>

@see Bitmap#compress(Bitmap.CompressFormat, int, OutputStream)
core/src/main/java/com/bumptech/glide/load/resource/bitmap/BitmapEncoder.java