You could draw it to a new bitmap, e.g.
Bitmap newBitmap = Bitmap.createBitmap(image.getWidth(),
image.getHeight(), image.getConfig());
Canvas canvas = new Canvas(newBitmap);
canvas.drawColor(Color.WHITE);
canvas.drawBitmap(image, 0F, 0F, null);
then save new bitmap instead
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…